Versions in this module Expand all Collapse all v0 v0.2.0 Jan 21, 2026 Changes in this version + type Config struct + EnableCaller bool + Env string + FilePath string + Level Level + MaxAgeDays int + MaxBackups int + MaxSizeMB int + Output OutputType + Service string + func (c *Config) Validate() error + type Field struct + func Any(key string, value any) Field + func Bool(key string, value bool) Field + func Error(err error) Field + func Float64(key string, value float64) Field + func Int(key string, value int) Field + func Int64(key string, value int64) Field + func String(key, value string) Field + type Level string + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const WarnLevel + func (l Level) String() string + type Logger struct + func New(cfg Config) (*Logger, error) + func (l *Logger) Debug(traceId string, msg string, metadata any, fields ...Field) + func (l *Logger) Error(traceId string, msg string, metadata any, fields ...Field) + func (l *Logger) Fatal(traceId string, msg string, metadata any, fields ...Field) + func (l *Logger) Info(traceId string, msg string, metadata any, fields ...Field) + func (l *Logger) Sync() error + func (l *Logger) Warn(traceId string, msg string, metadata any, fields ...Field) + func (l *Logger) With(fields ...Field) *Logger + type OutputType string + const OutputFile + const OutputStdout + func (o OutputType) String() string v0.1.0 Jan 16, 2026