Versions in this module Expand all Collapse all v0 v0.0.2 Mar 30, 2025 v0.0.1 Mar 28, 2025 Changes in this version + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const WarnLevel + func Debug(msg string, args ...any) + func Debugc(ctx context.Context, msg string, args ...any) + func Debugf(msg string, args ...any) + func Error(msg string, args ...any) + func Errorc(ctx context.Context, msg string, args ...any) + func Errorf(msg string, args ...any) + func Fatal(msg string, args ...any) + func Fatalc(ctx context.Context, msg string, args ...any) + func Fatalf(msg string, args ...any) + func Info(msg string, args ...any) + func Infoc(ctx context.Context, msg string, args ...any) + func Infof(msg string, args ...any) + func Warn(msg string, args ...any) + func Warnc(ctx context.Context, msg string, args ...any) + func Warnf(msg string, args ...any) + type Log struct + Logger *zap.SugaredLogger + Options *Options + func GetLog() *Log + func New(options map[string]any) (*Log, error) + func SetConfig(options map[string]any) (*Log, error) + func (log *Log) SetConfig(options map[string]any) (*Log, error) + type Options struct + Compress bool + File string + Level zapcore.Level + MaxAge int + MaxBackups int + MaxSize int + OutputFormatMode OutputFormatMode + OutputMode OutputMode + type OutputFormatMode uint + const OutputFormatModeJson + const OutputFormatModeText + type OutputMode uint + const OutputModeConsole + const OutputModeConsoleAndFile + const OutputModeFile