Versions in this module Expand all Collapse all v1 v1.0.0 Mar 18, 2022 Changes in this version + const LevelDPanic + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelPanic + const LevelWarn + var LogCommonFormat = zapcore.EncoderConfig + var LogOnlyMessageFormat = zapcore.EncoderConfig + func New(parent *zap.SugaredLogger, moduleName string, options ...zap.Option) *zap.SugaredLogger + func NewOtherLogger(formatter zapcore.Encoder, moduleName, logFilename, logDir string, ...) (logger *zap.SugaredLogger, closer func() error, err error) + func NewOtherLoggerWithOption(formatter zapcore.Encoder, moduleName, logFilename, logDir string, ...) (logger *zap.SugaredLogger, closer func() error, err error) + type HookLogger interface + SetHook func(hook LoggerHook) (err error) + func ReplaceGlobalHookLogger(name string, verbose bool, maxBackup uint, loggingDirectory, filename string, ...) (logger HookLogger, canceler func(), err error) + type Level = zapcore.Level + type Logger interface + DPanic func(args ...any) + DPanicf func(template string, args ...any) + Debug func(args ...any) + Debugf func(template string, args ...any) + Error func(args ...any) + Errorf func(template string, args ...any) + Fatal func(args ...any) + Fatalf func(template string, args ...any) + Info func(args ...any) + Infof func(template string, args ...any) + Name func() string + Named func(name string) Logger + Panic func(args ...any) + Panicf func(template string, args ...any) + Sync func() error + ToStdLogAt func(level Level) (*log.Logger, error) + Warn func(args ...any) + Warnf func(template string, args ...any) + type LoggerHook = func(level Level, logger, message string, at time.Time) (err error)