Versions in this module Expand all Collapse all v1 v1.0.0 Sep 28, 2026 Changes in this version + const Component + const DEBUG + const ERROR + const FATAL + const INFO + const WARN + func ConfigureFromEnv() + func Debug(message string) + func DebugC(component string, message string) + func DebugCF(component string, message string, fields map[string]any) + func DebugF(message string, fields map[string]any) + func Debugf(message string, ss ...any) + func DisableConsole() + func DisableFileLogging() + func EnableConsole() + func EnableFileLogging(filePath string) error + func Error(message string) + func ErrorC(component string, message string) + func ErrorCF(component string, message string, fields map[string]any) + func ErrorF(message string, fields map[string]any) + func Errorf(message string, ss ...any) + func Fatal(message string) + func FatalC(component string, message string) + func FatalCF(component string, message string, fields map[string]any) + func FatalF(message string, fields map[string]any) + func Fatalf(message string, ss ...any) + func Info(message string) + func InfoC(component string, message string) + func InfoCF(component string, message string, fields map[string]any) + func InfoF(message string, fields map[string]any) + func Infof(message string, ss ...any) + func InitPanic(filePath string) (func(), error) + func RecoverPanicNoExit(err any) + func SetConsoleLevel(level LogLevel) + func SetLevel(level LogLevel) + func SetLevelFromString(s string) + func Warn(message string) + func WarnC(component string, message string) + func WarnCF(component string, message string, fields map[string]any) + func WarnF(message string, fields map[string]any) + func Warnf(message string, ss ...any) + type LogLevel = zerolog.Level + func GetLevel() LogLevel + func ParseLevel(s string) (LogLevel, bool) + type Logger struct + func NewLogger(component string) *Logger + func (b *Logger) Debug(v ...any) + func (b *Logger) Debugf(format string, v ...any) + func (b *Logger) Error(v ...any) + func (b *Logger) Errorf(format string, v ...any) + func (b *Logger) Fatalf(format string, v ...any) + func (b *Logger) Info(v ...any) + func (b *Logger) Infof(format string, v ...any) + func (b *Logger) Log(msgL, caller int, format string, a ...any) + func (b *Logger) Sync() error + func (b *Logger) Warn(v ...any) + func (b *Logger) Warnf(format string, v ...any) + func (b *Logger) Warningf(format string, v ...any) + func (b *Logger) WithLevels(levels map[int]LogLevel) *Logger Other modules containing this package github.com/xibodev/compa/v2