Documentation
¶
Index ¶
- func Get() *zap.Logger
- func GlobalLogger() interfaces.Logger
- func Init(level, format string) error
- func NamedLogger(name string) interfaces.Logger
- func SetOutput(w io.Writer) error
- func StdLogWriter() io.Writer
- func Sync() error
- type ZapLogger
- func (z *ZapLogger) Debug(msg string, keysAndValues ...any)
- func (z *ZapLogger) Error(msg string, keysAndValues ...any)
- func (z *ZapLogger) Info(msg string, keysAndValues ...any)
- func (z *ZapLogger) Named(name string) interfaces.Logger
- func (z *ZapLogger) Warn(msg string, keysAndValues ...any)
- func (z *ZapLogger) With(keysAndValues ...any) interfaces.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobalLogger ¶
func GlobalLogger() interfaces.Logger
GlobalLogger returns an interfaces.Logger backed by the global zap logger.
func NamedLogger ¶
func NamedLogger(name string) interfaces.Logger
NamedLogger creates a named interfaces.Logger from the global logger.
func StdLogWriter ¶
StdLogWriter returns an io.Writer that logs to the global logger.
Types ¶
Click to show internal directories.
Click to hide internal directories.