Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *zap.SugaredLogger
Functions ¶
func LoggingMiddleware ¶
func LoggingMiddleware(next actor.ReceiverFunc) actor.ReceiverFunc
Logger is message middleware which logs messages before continuing to the next middleware
func SetLogLevel ¶
Types ¶
type LogAware ¶
type LogAware interface {
SetLog(log *zap.SugaredLogger)
}
type LogAwareHolder ¶
type LogAwareHolder struct {
Log *zap.SugaredLogger
}
func (*LogAwareHolder) SetLog ¶
func (state *LogAwareHolder) SetLog(log *zap.SugaredLogger)
type LogPlugin ¶
type LogPlugin struct{}
func (*LogPlugin) OnOtherMessage ¶
func (p *LogPlugin) OnOtherMessage(ctx actor.ReceiverContext, env *actor.MessageEnvelope)
func (*LogPlugin) OnStart ¶
func (p *LogPlugin) OnStart(ctx actor.ReceiverContext)
Click to show internal directories.
Click to hide internal directories.