List of all members.
Detailed Description
An object to extract the logs that matches the given criteria. It reads the input file and parse each log and writes in the output all the logs matching the criteria. It is possible to specify a start and/or end date or pass the name of a filter to load. The filters are the same used by jlog so jlog can be used to edit and save such file.
- Author:
- acaproni
Constructor & Destructor Documentation
alma.acs.logging.tools.LogFileExtractor.LogFileExtractor |
( |
String |
inputFiles[], |
|
|
String |
outputFile, |
|
|
Date |
startDate, |
|
|
Date |
endDate, |
|
|
String |
filterName, |
|
|
LogConverter |
converter | |
|
) |
| | throws Exception |
Constructor The parameters defines the criteria. They can be null (but not all null of course). All the criteria are applied in AND. If the start/end date are not present, the dates are not checked.
- Parameters:
-
| inputFiles | The name of the files of logs for input |
| outputFile | The name of the file with the selected logs |
| startDate | The start date of logs (can be null) |
| endDate | The end date of the logs (can be null) |
| filterName | The name of a file of filters to apply to select logs (can be null) |
| converter | The convert to save logs in different output formats |
- Exceptions:
-
| <code>Exception</code> | In case of error |
References com.cosylab.logging.engine.FiltersVector.loadFilters().
Member Function Documentation
void alma.acs.logging.tools.LogFileExtractor.bytesRead |
( |
long |
bytes |
) |
|
void alma.acs.logging.tools.LogFileExtractor.bytesWritten |
( |
long |
bytes |
) |
|
void alma.acs.logging.tools.LogFileExtractor.errorReceived |
( |
String |
xml |
) |
|
void alma.acs.logging.tools.LogFileExtractor.extract |
( |
|
) |
throws Exception |
Extract the logs from the source to the destination applying the selection criteria given in the constructor
void alma.acs.logging.tools.LogFileExtractor.logEntryReceived |
( |
ILogEntry |
logEntry |
) |
|
void alma.acs.logging.tools.LogFileExtractor.logsRead |
( |
int |
numOfLogs |
) |
|
void alma.acs.logging.tools.LogFileExtractor.logsWritten |
( |
int |
numOfLogs |
) |
|
The documentation for this class was generated from the following file: