Class ClassicDSpaceLogConverter

java.lang.Object
org.dspace.statistics.util.ClassicDSpaceLogConverter

public class ClassicDSpaceLogConverter extends Object
A utility class to convert the classic dspace.log (as generated by log4j) files into an intermediate format for ingestion into the new solr stats.
Author:
Stuart Lewis
See Also:
  • Constructor Details

    • ClassicDSpaceLogConverter

      public ClassicDSpaceLogConverter(Context c, boolean v, boolean nE)
      Create an instance of the converter utility
      Parameters:
      c - The context
      v - Whether or not to provide verbose output
      nE - Whether to include actions logged by org.dspace.usage.LoggerUsageEventListener
  • Method Details

    • convert

      public int convert(String in, String out)
      Convert a classic log file
      Parameters:
      in - The filename to read from
      out - The filename to write to
      Returns:
      The number of lines processed
    • main

      public static void main(String[] args)
      Main method to execute the converter
      Parameters:
      args - the command line arguments given