Documentation ¶
Overview ¶
Package log contains the CLI logger, abstracting away any major detail about the underlying logger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(msg string, args ...interface{})
Debug prints the msg, plus any additional even number of arguments, only if the log level is higher than debug
func Error ¶
func Error(msg string, args ...interface{})
Error prints the msg, plus any additional even number of arguments, only if the log level is higher than error
Types ¶
type Encoding ¶
type Encoding string
Encoding represents the possible formats for logs
type Level ¶
Level encodes the log level, can not be a type alias because we need to implement the same interfaces
type Logger ¶
type Logger struct {
*zap.SugaredLogger
}
Logger is the actual logger
func DefaultLogger ¶
DefaultLogger configures the logger, setting the given level
func (*Logger) Debug ¶
Debug prints the msg, plus any additional even number of arguments, only if the log level is higher than debug
func (*Logger) Error ¶
Error prints the msg, plus any additional even number of arguments, only if the log level is higher than error