Class ApacheLogParser

java.lang.Object
org.deltava.util.log.ApacheLogParser
All Implemented Interfaces:
LogParser

public class ApacheLogParser extends Object implements LogParser
A Log Parser for Apache 2.0 common access logs. This requires that the log be in the Apache 2.x format "%h %u %t \"%r\" %>s %B %D".
Since:
1.0
Version:
11.1
Author:
Luke
  • Constructor Details

    • ApacheLogParser

      public ApacheLogParser()
  • Method Details

    • parseLog

      public HTTPStatistics parseLog(File f)
      Parses an Apache 2.0 common log file.
      Specified by:
      parseLog in interface LogParser
      Parameters:
      f - the log file
      Returns:
      the HTTP statistics for that log period