Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
Options []zap.Option
LC sen.Lifecycle `inject:"lifecycle"`
Hub sen.Hub `inject:"hub"`
}
Plugin is a sen.Plugin that provides an instance of *zap.Logger.
Usage ¶
app.With(&zap.Plugin{
Options: zapOptions,
})
func (Plugin) Initialize ¶
Initialize initialises zap logger for the application. The logger will be regisreted under "logger" tag.
Click to show internal directories.
Click to hide internal directories.