EventLoggingService

public interface EventLoggingService

Interface that represents a logging service. A logging service can provide any sort of implementation, but must be able to log events and return a list of logged events.

Methods

getLoggedEventSubjects

Set<String> getLoggedEventSubjects()

Returns a set of event subjects this logger is listening on.

Returns:the list of event subjects

logEvent

void logEvent(MotechEvent event)

Logs an event. The ultimate destination of the logged event depends on the installed logging service’s org.motechproject.eventlogging.service.EventLoggingServiceManager A default logging service is configured that logs to the database.

Parameters:
  • event – the event to log