Documentation ¶
Overview ¶
Package logger Logger implementation based on zap log package (https://github.com/uber-go/zap)
Index ¶
- func Debug(format string, params ...any)
- func EnableJsonFormat(value bool)
- func EnableStacktrace(value bool)
- func Error(format string, params ...any)
- func Fatal(format string, params ...any)
- func Info(format string, params ...any)
- func Init()
- func SetLevel(level string)
- func SetTimeLayout(layout string)
- func Warn(format string, params ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableJsonFormat ¶ added in v1.1.2
func EnableJsonFormat(value bool)
EnableJsonFormat configure log output as json (true) or text line (false)
func EnableStacktrace ¶ added in v1.1.2
func EnableStacktrace(value bool)
EnableStacktrace configure log output to include or exclude stack trace
func SetLevel ¶ added in v1.1.2
func SetLevel(level string)
SetLevel log level DEBUG | INFO | WARN | ERROR
func SetTimeLayout ¶ added in v1.1.2
func SetTimeLayout(layout string)
SetTimeLayout define the log entry time layout
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.