Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootLogger ¶
NewRootLogger creates a new zerolog logger with default settings.
Types ¶
type Service ¶
type Service interface {
// MustGetLogger creates a logger with given name.
MustGetLogger(name string) zerolog.Logger
// MustSetLevel sets the log level for the component with given name to given level.
MustSetLevel(name, level string)
// ConfigureRootLogger calls the given callback to modify the root logger.
ConfigureRootLogger(cb func(rootLog zerolog.Logger) zerolog.Logger)
// CaptureGLog configures glog to write to the given logger
CaptureGLog(log zerolog.Logger)
}
Service exposes the interfaces for a logger service that supports different loggers with different levels.
func NewService ¶
NewService creates a new Service.
Click to show internal directories.
Click to hide internal directories.