Versions in this module Expand all Collapse all v1 v1.0.0 Feb 1, 2026 Changes in this version + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const WarnLevel + func Debug(msg string) + func Debugf(format string, args ...interface{}) + func Error(msg string) + func Errorf(format string, args ...interface{}) + func Info(msg string) + func Infof(format string, args ...interface{}) + func SetGlobal(l *Logger) + func Warn(msg string) + func Warnf(format string, args ...interface{}) + type Config struct + Component string + Level Level + Output io.Writer + Pretty bool + TimeFormat string + func DefaultConfig() Config + type Level = zerolog.Level + func ParseLevel(levelStr string) (Level, error) + type Logger struct + func Global() *Logger + func New(cfg Config) *Logger + func NewDefault() *Logger + func NewJSON(level Level) *Logger + func (l *Logger) CrawlEvent(level Level, url string, depth int, workerID int) *zerolog.Event + func (l *Logger) Debug(msg string) + func (l *Logger) Debugf(format string, args ...interface{}) + func (l *Logger) DiscoveryEvent(discoveryType, url, source string) + func (l *Logger) Error(msg string) + func (l *Logger) ErrorEvent(err error, url string, operation string) + func (l *Logger) Errorf(format string, args ...interface{}) + func (l *Logger) Event(level Level) *zerolog.Event + func (l *Logger) Fatal(msg string) + func (l *Logger) Fatalf(format string, args ...interface{}) + func (l *Logger) Info(msg string) + func (l *Logger) Infof(format string, args ...interface{}) + func (l *Logger) RequestEvent(method, url string, statusCode int, duration time.Duration) + func (l *Logger) SetLevel(level Level) + func (l *Logger) StatsEvent(stats map[string]interface{}) + func (l *Logger) Warn(msg string) + func (l *Logger) Warnf(format string, args ...interface{}) + func (l *Logger) WithComponent(component string) *Logger + func (l *Logger) WithDepth(depth int) *Logger + func (l *Logger) WithDuration(d time.Duration) *Logger + func (l *Logger) WithError(err error) *Logger + func (l *Logger) WithField(key string, value interface{}) *Logger + func (l *Logger) WithFields(fields map[string]interface{}) *Logger + func (l *Logger) WithURL(url string) *Logger + func (l *Logger) WithWorker(workerID int) *Logger