Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStandardLogger ¶
NewStandardLogger creates a new zap.Logger based on common configuration
This is intended to be used with zap.ReplaceGlobals() in an application's main.go.
func NewStandardZapConfig ¶
NewStandardZapConfig returns a sensible [config](https://godoc.org/go.uber.org/zap#Config) for a Zap logger.
Types ¶
type StandartLogger ¶
type StandartLogger struct {
*zap.SugaredLogger
}
func NewSugaredLogger ¶
func NewSugaredLogger(logLevel zapcore.Level) StandartLogger
func (*StandartLogger) Infof ¶
func (l *StandartLogger) Infof(template string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.