Documentation
¶
Index ¶
- func Debug(msg string)
- func Debugf(msg string, fields map[string]interface{})
- func Error(msg string)
- func Errorf(msg string, fields map[string]interface{})
- func Fatal(msg string)
- func Fatalf(msg string, fields map[string]interface{})
- func Info(msg string)
- func Infof(msg string, fields map[string]interface{})
- func LogError(err error, msg string)
- func LogErrorf(err error, msg string, fields map[string]interface{})
- func LogFatal(err error, msg string)
- func SetLevel(level zerolog.Level)
- func Warn(msg string)
- func Warnf(msg string, fields map[string]interface{})
- func WithContext(fields map[string]interface{}) zerolog.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogError ¶ added in v1.2.0
LogError logs an error with details This should be the preferred method for logging errors in the application
func WithContext ¶
WithContext returns a logger with additional context This is useful for adding persistent fields to log messages in a specific component or function chain
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.