FileLogManager
File-based log manager. This is the commonly used manager.
To make sure that log files do not become too large, a so-called log rotation can be used, which means that at the change of the day the current log file is renamed and a new file log file is created.
Similarly, files that are older than a set number of days can be automatically deleted from the LogManager as part of the rotation.
The class name of the FileLogManager, as it must be specified when adding it to the LogService, is "com.ebd.hub.services.log.file.FileLogManager".
Basic configuration by using the XML file
The following XML fragment with all possible basic settings can be used to configure the FileLogManager.
<
Set
name
=
"maxDays"
>logname</
Set
>
<
Set
name
=
"name"
>logmanagername</
Set
>
<
Set
name
=
"rootDir"
>/dir/to/logfiles/</
Set
>
The parameters have the following meaning.
Parameter |
Description |
maxDays |
The number of days that an older, renamed log file (see above) should be held by the LogService before it is deleted for disk space saving purposes. |
name |
The name of the LogManager, as it should appear in the LogService. |
rootDir |
The base directory in which log files are to be created. |