Categorygithub.com/nakiner/go-logger
modulepackage
0.0.5
Repository: https://github.com/nakiner/go-logger.git
Documentation: pkg.go.dev

# Functions

Debug ...
Debugf ...
DebugKV ...
Error ...
Errorf ...
ErrorKV ...
Fatal ...
Fatalf ...
FatalKV ...
FromContext returns logger from context if set.
Info ...
Infof ...
InfoKV ...
Level returns current global logger level.
Logger returns current global logger.
No description provided by the author
New creates new *zap.SugaredLogger with standard EncoderConfig if lvl == nil, global AtomicLevel will be used.
NewWithSink ...
RequestLogger returns a logger handler..
SetLevel sets level for global logger.
SetLogger sets global used logger.
No description provided by the author
No description provided by the author
Warn ...
Warnf ...
WarnKV ...
WithUniqueFields keep fields unique.

# Variables

commonly used key-values for logger decoration.

# Structs

LogEntry records the final log when a request completes.
LogFormatter initiates the beginning of a new LogEntry per request.