EventToLogConverter

public interface EventToLogConverter<T>

Interface to implement for custom converters. The converter should return an appropriate return type that a logger can use to log the information.

Parameters:
  • <T> – The return type that will be used to log.

Methods

convertToLog

T convertToLog(MotechEvent event)

Converts an event to a generic type that should be used to log the event.

Parameters:
  • event – The incoming motech event to be converted to a log.
Returns:

An appropriate object type that can be used by a logger to log the event.