Interface AuditLogFileProvider

All Known Implementing Classes:
DefaultAuditLogFileProvider

public interface AuditLogFileProvider
Given a list of dates, the provider is responsible for finding all the relevant log files on a given node. In addition, the provider is responsible for parsing individual lines from a log file in order to derive timestamp and text information. This is primarily useful when compiling a single log file that contains information from multiple log files arranged in chronological order.

Implementations should provide their own implementation of this class to cover log file acquisition and parsing needs that are beyond the scope of DefaultAuditLogFileProvider. Custom implementations should utilize the blAuditLogFileProvider bean id in Spring.
Author:
Jeff Fischer
  • Method Details

    • getLogFileInputStream

      AuditLogContainer[] getLogFileInputStream(List<Date> dates)
      Retrieve file information for relevant log file related to the request dates
      Parameters:
      dates - the dates that should be covered by all the returned log files
      Returns:
      the log file information for multiple log files
    • buildLine

      void buildLine(BufferedReader file, AuditLogLine logLine) throws LineParseException
      Build data around a line from a log file - used for weaving multiple log files into a single file
      Parameters:
      file - the input from the log file
      logLine - contains the information about the log line
      Throws:
      LineParseException - any problem that occurs during the parsing of a line from the log