Documentation
¶
Index ¶
- func Init() logger.Logger
- type ZapLogger
- func (z *ZapLogger) DPanic(msg string, fields map[string]any)
- func (z *ZapLogger) Debug(msg string, fields map[string]any)
- func (z *ZapLogger) Error(msg string, fields map[string]any)
- func (z *ZapLogger) Fatal(msg string, fields map[string]any)
- func (z *ZapLogger) Info(msg string, fields map[string]any)
- func (z *ZapLogger) Panic(msg string, fields map[string]any)
- func (z *ZapLogger) Sync() error
- func (z *ZapLogger) Warn(msg string, fields map[string]any)
- func (z *ZapLogger) WithContext(fields map[string]any) *ZapLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ZapLogger ¶
ZapLogger is a concrete implementation of the Logger interface using zap.Logger.
func New ¶
New initializes a new zap-based Logger. It accepts the environment as a parameter to configure the logger appropriately.
Click to show internal directories.
Click to hide internal directories.