Documentation
¶
Overview ¶
Package zap provides a Zap binding for Scribe.
Example ¶
zap, err := zap.NewDevelopment() if err != nil { panic(err) } s := scribe.New(Bind(zap.Sugar())) // Do some logging s.I()("Important application message")
Output:
Index ¶
Examples ¶
Constants ¶
View Source
const KeyErr = "Err"
KeyErr is used to key Scene.Err into the custom logging context.
Variables ¶
This section is empty.
Functions ¶
func Bind ¶
func Bind(logger *zap.SugaredLogger) scribe.LoggerFactories
Bind creates a Zap binding for a given sugared logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.