Documentation
¶
Index ¶
- func Debug() *zerolog.Event
- func Error() *zerolog.Event
- func Fatal() *zerolog.Event
- func Get() *zerolog.Logger
- func GetLevel() zerolog.Level
- func Info() *zerolog.Event
- func Init(cfg Config)
- func SetLevel(level zerolog.Level)
- func Trace() *zerolog.Event
- func Warn() *zerolog.Event
- func WithCommand(command string) zerolog.Logger
- func WithContext(fields map[string]interface{}) zerolog.Logger
- func WithRequestID(requestID string) zerolog.Logger
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(cfg Config)
Init initializes the global logger with the provided configuration
func WithCommand ¶
WithCommand returns a logger with command context
func WithContext ¶
WithContext returns a logger with additional context fields
func WithRequestID ¶
WithRequestID returns a logger with request ID context
Types ¶
Click to show internal directories.
Click to hide internal directories.