Package org.dspace.statistics.util
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:
StatisticsImporter
-
-
Constructor Summary
Constructors Constructor Description ClassicDSpaceLogConverter(Context c, boolean v, boolean nE)Create an instance of the converter utility
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intconvert(String in, String out)Convert a classic log filestatic voidmain(String[] args)Main method to execute the converter
-
-
-
Constructor Detail
-
ClassicDSpaceLogConverter
public ClassicDSpaceLogConverter(Context c, boolean v, boolean nE)
Create an instance of the converter utility- Parameters:
c- The contextv- Whether or not to provide verbose outputnE- Whether to include actions logged by org.dspace.usage.LoggerUsageEventListener
-
-
Method Detail
-
convert
public int convert(String in, String out)
Convert a classic log file- Parameters:
in- The filename to read fromout- 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
-
-