Documentation
¶
Index ¶
- Variables
- func Debug(msg string)
- func Error(msg string)
- func Errorf(format string, err error)
- func Fatal(msg string)
- func Info(msg string)
- func Init(cfg Config)
- func Warn(msg string)
- func WithComponent(component string) zerolog.Logger
- func WithNodeID(nodeID string) zerolog.Logger
- func WithServiceID(serviceID string) zerolog.Logger
- func WithTaskID(taskID string) zerolog.Logger
- type Config
- type Level
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Logger is the global logger instance Logger zerolog.Logger )
Functions ¶
func WithComponent ¶
WithComponent creates a child logger with component field
func WithNodeID ¶
WithNodeID creates a child logger with node_id field
func WithServiceID ¶
WithServiceID creates a child logger with service_id field
func WithTaskID ¶
WithTaskID creates a child logger with task_id field
Types ¶
Click to show internal directories.
Click to hide internal directories.