README ¶ Logger Installation go get github.com/tpm-common/gommon/logger Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Logger func New(service string) Logger func (l Logger) Error(err error, msg string, keysAndValues ...any) func (l Logger) Info(msg string, keysAndValues ...any) func (l Logger) WithFields(keysAndValues ...any) Logger func (l Logger) WithLevel(level int) Logger func (l Logger) WithName(name string) Logger Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Logger ¶ type Logger struct { // contains filtered or unexported fields } func New ¶ func New(service string) Logger func (Logger) Error ¶ func (l Logger) Error(err error, msg string, keysAndValues ...any) func (Logger) Info ¶ func (l Logger) Info(msg string, keysAndValues ...any) func (Logger) WithFields ¶ func (l Logger) WithFields(keysAndValues ...any) Logger func (Logger) WithLevel ¶ func (l Logger) WithLevel(level int) Logger func (Logger) WithName ¶ func (l Logger) WithName(name string) Logger Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.