Documentation
¶
Index ¶
- func Close()
- func Debug(msg string, args ...any)
- func Error(msg string, args ...any)
- func GetGlobalLogger() *zap.Logger
- func Info(msg string, args ...any)
- func Init(cfg Config)
- func NewLogger(cfg Config) (*zap.Logger, error)
- func SetGlobalLogger(l *zap.Logger)
- func Warn(msg string, args ...any)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGlobalLogger ¶
GetGlobalLogger returns the global logger instance Useful for services that need to store a logger reference
func SetGlobalLogger ¶
SetGlobalLogger swaps the global logger (and its sugared form). It is primarily a test seam: tests build a logger over an observed core to assert what was logged. Passing nil is a no-op.
Types ¶
Click to show internal directories.
Click to hide internal directories.