Example #1
0
func (l *LoggerHandler) Action(m *integrate.Message, logger integrate.Logger) (*integrate.Message, error) {
	logger.Debug("Received Action for message %v", m)
	newMessage := m.Copy()
	newMessage.AddContext("logged", true)
	return newMessage, nil
}
Example #2
0
func (l *LoggerHandler) ShouldAction(m *integrate.Message, logger integrate.Logger) bool {
	logger.Debug("Received should action for message %v", m)
	return true
}