Versions in this module Expand all Collapse all v1 v1.1.0 Mar 15, 2026 v1.0.1 Nov 22, 2025 Changes in this version + func Debug(msg string, fields ...Fields) + func DebugOp(op, msg string, fields ...Fields) + func Error(msg string, err error, fields ...Fields) + func ErrorOp(op, msg string, err error, fields ...Fields) + func Info(msg string, fields ...Fields) + func InfoOp(op, msg string, fields ...Fields) + func SetDefaultLogger(logger *Logger) + func Warn(msg string, fields ...Fields) + func WarnOp(op, msg string, fields ...Fields) + type Config struct + Component string + IncludeFile bool + IncludeTrace bool + Level Level + Output io.Writer + func DefaultConfig() *Config + type Entry struct + Component string + Error string + Fields map[string]interface{} + File string + Level string + Line int + Message string + Operation string + StackTrace string + Timestamp time.Time + type Fields map[string]interface + type Level int + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelWarn + func ParseLevel(s string) (Level, error) + func (l Level) String() string + type Logger struct + func Default() *Logger + func New(config *Config) *Logger + func (l *Logger) Debug(msg string, fields ...Fields) + func (l *Logger) DebugOp(op, msg string, fields ...Fields) + func (l *Logger) Error(msg string, err error, fields ...Fields) + func (l *Logger) ErrorOp(op, msg string, err error, fields ...Fields) + func (l *Logger) Fatal(msg string, err error, fields ...Fields) + func (l *Logger) GetLevel() Level + func (l *Logger) Info(msg string, fields ...Fields) + func (l *Logger) InfoOp(op, msg string, fields ...Fields) + func (l *Logger) SetLevel(level Level) + func (l *Logger) Warn(msg string, fields ...Fields) + func (l *Logger) WarnOp(op, msg string, fields ...Fields) + func (l *Logger) WithComponent(component string) *Logger + func (l *Logger) WithFields(fields Fields) *Logger