List of all members.
Detailed Description
An object to split a log file in several other shorter file. The criteria is the number of logs or the time (in minutes)
A progressive number is appended to the name of the destination for each created file. If the time is the criteria to split the input file, the the date of the first log is appended to the name of the file too.
- Author:
- acaproni
Constructor & Destructor Documentation
alma.acs.logging.tools.LogFileSplitter.LogFileSplitter |
( |
String[] |
inputFiles, |
|
|
String |
outputFiles, |
|
|
Integer |
num, |
|
|
Integer |
mins, |
|
|
LogConverter |
converter | |
|
) |
| | |
Constructor
- Parameters:
-
| inputFiles | The files of log to read |
| outputFiles | The names of the files created splitting |
| num | The number of logs per file (can be null) |
| mins | The minutes of the logs per file (can be null) |
| converter | The converter to format the logs before saving |
Member Function Documentation
void alma.acs.logging.tools.LogFileSplitter.bytesRead |
( |
long |
bytes |
) |
|
void alma.acs.logging.tools.LogFileSplitter.bytesWritten |
( |
long |
bytes |
) |
|
void alma.acs.logging.tools.LogFileSplitter.errorReceived |
( |
String |
xml |
) |
|
void alma.acs.logging.tools.LogFileSplitter.logEntryReceived |
( |
ILogEntry |
logEntry |
) |
|
void alma.acs.logging.tools.LogFileSplitter.logsRead |
( |
int |
numOfLogs |
) |
|
void alma.acs.logging.tools.LogFileSplitter.logsWritten |
( |
int |
numOfLogs |
) |
|
void alma.acs.logging.tools.LogFileSplitter.split |
( |
|
) |
throws Exception |
Split the input file
- Exceptions:
-
| Exception | in case of errors while splitting |
The documentation for this class was generated from the following file: