FileEventLoggingService

public class FileEventLoggingService implements EventLoggingService

Implementation of org.motechproject.eventlogging.service.EventLoggingService It is used to log events to files.

Constructors

FileEventLoggingService

public FileEventLoggingService()

Creates an instance of FileEventLoggingService without any loggers.

FileEventLoggingService

public FileEventLoggingService(List<FileEventLogger> fileEventLoggers)

Creates an instance of FileEventLoggingService and adds to it all loggers passed as a parameter.

Parameters:
  • fileEventLoggers – list of loggers to add to this service

Methods

getLoggedEventSubjects

public Set<String> getLoggedEventSubjects()

logEvent

public void logEvent(MotechEvent event)