package
0.0.0-20230212075855-37d0fc33fcd1
Repository: https://github.com/hahamx/utools.git
Documentation: pkg.go.dev
# Functions
NewJSONLogger return a json-encoder zap logger,.
创建一个新的日志记录器.
NewMeta create meat.
WithDebugLevel only greater than 'level' will output.
WithDisableConsole WithEnableConsole write log to os.Stdout or os.Stderr.
WithErrorLevel only greater than 'level' will output.
WithField add some field(s) to log.
WithFileP write log to some file.
WithFileRotationP write log to some file with rotation.
WithInfoLevel only greater than 'level' will output.
WithTimeLayout custom time format.
WithWarnLevel only greater than 'level' will output.
WrapMeta wrap meta to zap fields.
# Constants
DefaultLevel the default log level.
DefaultTimeLayout the default time layout;.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
Meta key-value.
# Type aliases
Option custom setup config.