Package org.dspace.statistics.util
Class ClassicDSpaceLogConverter
java.lang.Object
org.dspace.statistics.util.ClassicDSpaceLogConverter
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 Summary
ConstructorsConstructorDescriptionClassicDSpaceLogConverter(Context c, boolean v, boolean nE) Create an instance of the converter utility -
Method Summary
-
Constructor Details
-
ClassicDSpaceLogConverter
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 Details
-
convert
Convert a classic log file- Parameters:
in- The filename to read fromout- The filename to write to- Returns:
- The number of lines processed
-
main
Main method to execute the converter- Parameters:
args- the command line arguments given
-