Documentation ¶
Index ¶
- func Debugf(format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func SetDisplayMode(m DisplayMode)
- func SetStderr(w io.Writer)
- func SetStdout(w io.Writer)
- func Verbose(format string, args ...interface{})
- func Warnf(format string, args ...interface{})
- type DisplayMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf output the debug message to console
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf output the error message to console Deprecated: Use zap.L().Error() instead
func Infof ¶
func Infof(format string, args ...interface{})
Infof output the log message to console Deprecated: Use zap.L().Info() instead
func SetDisplayMode ¶ added in v1.7.0
func SetDisplayMode(m DisplayMode)
SetDisplayMode changes the global output format of logger
Types ¶
type DisplayMode ¶ added in v1.7.0
type DisplayMode int
DisplayMode control the output format
const ( DisplayModeDefault DisplayMode = iota // default is the interactive output DisplayModePlain // plain text DisplayModeJSON // JSON )
display modes
func GetDisplayMode ¶ added in v1.7.0
func GetDisplayMode() DisplayMode
GetDisplayMode returns the current global output format
Click to show internal directories.
Click to hide internal directories.