Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module for logrus logging
func (*Module) Configure ¶
Configure the logrus logger as flamingo.Logger (in JSON mode kibana compatible)
func (*Module) DefaultConfig ¶
func (*Module) Inject ¶
func (m *Module) Inject(config *struct { Area string `inject:"config:area"` JSON bool `inject:"config:zap.json,optional"` LogLevel string `inject:"config:zap.loglevel,optional"` ColoredOutput bool `inject:"config:zap.colored,optional"` DevelopmentMode bool `inject:"config:zap.devmode,optional"` SamplingEnabled bool `inject:"config:zap.sampling.enabled,optional"` SamplingInitial float32 `inject:"config:zap.sampling.initial,optional"` SamplingThereafter float32 `inject:"config:zap.sampling.thereafter,optional"` })
type ShutdownEventSubscriber ¶
ShutdownEventSubscriber handles the logger sync on flamingo shutdown
func (*ShutdownEventSubscriber) Notify ¶
func (subscriber *ShutdownEventSubscriber) Notify(event event.Event)
Notify handles the incoming event if it is a AppShutdownEvent
Click to show internal directories.
Click to hide internal directories.