Versions in this module Expand all Collapse all v0 v0.0.2 Jun 13, 2024 Changes in this version + func Access(ctx *context.Context) + func Debug(info ...interface{}) + func Debugf(template string, args ...interface{}) + func Error(err ...interface{}) + func ErrorCtx(ctx *context.Context, format string, args ...interface{}) + func Errorf(template string, args ...interface{}) + func Fatal(info ...interface{}) + func FatalCtx(ctx *context.Context, format string, args ...interface{}) + func Fatalf(template string, args ...interface{}) + func Info(info ...interface{}) + func InfoCtx(ctx *context.Context, format string, args ...interface{}) + func Infof(template string, args ...interface{}) + func InitWithConfig(cfg Config) + func LogSQL(statement string, args []interface{}) + func OpenSQLLog() + func Panic(info ...interface{}) + func PanicCtx(ctx *context.Context, format string, args ...interface{}) + func Panicf(template string, args ...interface{}) + func SetRotate(cfg RotateCfg) + func Warn(info ...interface{}) + func WarnCtx(ctx *context.Context, format string, args ...interface{}) + func Warnf(template string, args ...interface{}) + type Config struct + AccessAssetsLogOff bool + AccessLogOff bool + AccessLogPath string + Debug bool + Encode EncoderCfg + ErrorLogOff bool + ErrorLogPath string + InfoLogOff bool + InfoLogPath string + Level int8 + Rotate RotateCfg + SqlLogOpen bool + type EncoderCfg struct + Caller string + CallerKey string + Duration string + Encoding string + Level string + LevelKey string + MessageKey string + NameKey string + StacktraceKey string + Time string + TimeKey string + type Logger struct + Level zapcore.Level + func (l *Logger) Init() + func (l *Logger) SetEncoder(cfg EncoderCfg) + func (l *Logger) SetRotate(cfg RotateCfg) + type RotateCfg struct + Compress bool + MaxAge int + MaxBackups int + MaxSize int