Documentation ¶
Overview ¶
Package logger config a zap logger, functions have same signature with `zap.logger`. Can be configured by env `LOG_LEVEL`.
Index ¶
- func Copy() *zap.Logger
- func DPanic(msg string, fields ...zapcore.Field)
- func Debug(msg string, fields ...zapcore.Field)
- func Err(err error, msg string, fields ...zapcore.Field)
- func Error(msg string, fields ...zapcore.Field)
- func Fatal(msg string, fields ...zapcore.Field)
- func Info(msg string, fields ...zapcore.Field)
- func Infoln(args ...any)
- func Named(name string) *zap.Logger
- func Panic(msg string, fields ...zapcore.Field)
- func Std() *stdLog.Logger
- func StdAt(level zapcore.Level) *stdLog.Logger
- func Warn(msg string, fields ...zapcore.Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.