Documentation ¶
Index ¶
- Variables
- func Console() *zapcore.Core
- func Debug(message string, fields ...zap.Field)
- func Debugf(format string, v ...any)
- func Error(message string, fields ...zap.Field)
- func Errorf(format string, v ...any)
- func GinDebug(message string, fields ...zap.Field)
- func GinError(message string, fields ...zap.Field)
- func GinInfo(message string, fields ...zap.Field)
- func GinLog()
- func GinWarn(message string, fields ...zap.Field)
- func Info(message string, fields ...zap.Field)
- func Infof(format string, v ...any)
- func Init()
- func LocalFile(filename string) *zapcore.Core
- func Printf(format string, v ...any)
- func Println(v ...string)
- func SystemLog()
- func Warn(message string, fields ...zap.Field)
- func Warnf(format string, v ...any)
Constants ¶
This section is empty.
Variables ¶
View Source
var EncoderConfig = zapcore.EncoderConfig{ TimeKey: "time", LevelKey: "level", NameKey: "logger", CallerKey: "caller", FunctionKey: zapcore.OmitKey, MessageKey: "msg", StacktraceKey: "stacktrace", LineEnding: zapcore.DefaultLineEnding, EncodeLevel: zapcore.CapitalColorLevelEncoder, EncodeTime: zapcore.ISO8601TimeEncoder, EncodeDuration: zapcore.SecondsDurationEncoder, EncodeCaller: zapcore.ShortCallerEncoder, EncodeName: zapcore.FullNameEncoder, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.