Documentation ¶
Overview ¶
Package log provides logging directives.
Package log provides logging directives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultLogger ¶
func NewDefaultLogger() (*zap.SugaredLogger, error)
NewDefaultLogger returns an opinionated, sugared logger.
Types ¶
type Configuration ¶
Configuration defines config parameters for building a Logger.
type Logger ¶
type Logger interface { Debug(...interface{}) Debugf(string, ...interface{}) Info(...interface{}) Infof(string, ...interface{}) Warn(...interface{}) Warnf(string, ...interface{}) Error(...interface{}) Errorf(string, ...interface{}) }
Logger interface provides an abstraction over different loggers that can be used with the application.
Click to show internal directories.
Click to hide internal directories.