public class HarvesterLog extends Object
| Constructor and Description |
|---|
HarvesterLog(String logFilePath)
Creates a logger that logs to a specified file and assigns
a standard logging pattern to it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearLog()
Deletes the log file.
|
String |
getLog(List<String> dateFilters,
List<String> levelFilters,
List<String> classFilters)
Retrieves filtered log messages from the harvester service log file.
|
void |
registerLogger()
Registers the logger at the list of loggers.
|
void |
unregisterLogger()
Unregisters the logger from the list of loggers.
|
public HarvesterLog(String logFilePath)
logFilePath - the path to the log filepublic void clearLog()
public void registerLogger()
public void unregisterLogger()
public String getLog(List<String> dateFilters, List<String> levelFilters, List<String> classFilters)
dateFilters - the log dates in YYYY-MM-DD format of the log messages,
or null if this filter should not be appliedlevelFilters - the log levels of the log messages,
or null if this filter should not be appliedclassFilters - the logger names of the log messages,
or null if this filter should not be appliedCopyright © 2017–2019. All rights reserved.