logger

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discard

func Discard() *zap.SugaredLogger

Discard returns a logger that discards all log messages, most useful in tests

func New

func New(verbosity int, defaultLog io.Writer, debugLog io.Writer) *zap.SugaredLogger

New returns a logger

Valid levels are:

0 = errors only,
1 = include warnings,
2 = include informational messages,
3 = include debug messages.

If debugLog is non-nil, all log messages will be written to it independent of the verbosity of the default log.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL