Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *zap.SugaredLogger
Functions ¶
func InitConsoleLog ¶ added in v0.9.16
InitConsoleLog set the console log level and mode for debugging.
func InitFileLog ¶ added in v0.9.16
InitFileLog set the file log level and filename for debugging.
func InitMultiLog ¶ added in v0.10.3
InitMultiLog set the log mode, level, filename for debugging. The logger will print both to console and files.
func NewSugar ¶ added in v0.9.16
func NewSugar(name string) *zap.SugaredLogger
Types ¶
type LogModeEncoder ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.