Documentation
¶
Overview ¶
Package logging provides application-wide logging configuration.
Index ¶
Constants ¶
View Source
const ( LevelTrace = "trace" LevelDebug = "debug" LevelInfo = "info" LevelWarn = "warn" LevelError = "error" )
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(setters ...OptOptionsSetter) error
Init initializes the global logger for zerolog and configures slog for third-party libraries.
Types ¶
type OptOptionsSetter ¶
type OptOptionsSetter func(o *Options)
func WithJson ¶
func WithJson(opt bool) OptOptionsSetter
func WithLevel ¶
func WithLevel(opt string) OptOptionsSetter
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions( options ...OptOptionsSetter, ) Options
Click to show internal directories.
Click to hide internal directories.