log

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

func Verbose added in v1.6.0

func Verbose(format string, args ...interface{})

Verbose logs verbose messages

func Warnf

func Warnf(format string, args ...interface{})

Warnf output the warning message to console Deprecated: Use zap.L().Warn() instead

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

Jump to

Keyboard shortcuts

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