Documentation ¶
Overview ¶
logger customs go.uber.org/zap logger with level, caller context and rorate file via github.com/natefinch/lumberjack.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.Logger
View Source
var Sugared *zap.SugaredLogger
Functions ¶
func Init ¶
Init customs go.uber.org/zap glogging.
parameter logpaths available value: stdout,stderr,path/to/file; parameter loglevel
func LoglevelStr2uint ¶ added in v0.0.12
LoglevelStr2uint converts logging level from a string into zapcore.Level.
Types ¶
type Loglevel ¶ added in v0.0.10
type Loglevel string
func String2LogLevel ¶ added in v0.0.12
String2LogLevel convert level name string into glogging.Loglevel type
Click to show internal directories.
Click to hide internal directories.