The properties for File Appender configuration with PID com.prosyst.mbs.impl.services.log.FileLogAppender are described in the following table:
Configuration Property |
Name |
Type |
Default Value |
Description |
|---|---|---|---|---|
Enabled |
Enabled |
boolean |
false |
Enable or disable this build-in appender. |
mdcEnabled |
MDC Enabled |
boolean |
false |
MDC Enabled Enable Managed Diagnostics Context - this is necessary to get the line number and current thread name to the log. |
skipExceptions |
Skip Exceptions |
int[] |
[] |
Skip the exception stack traces from being stored in the log file for the selected log level(s). This will significantly reduce the log spam of the system but there will be less viable information for debugging. |
maxBackupCount |
Max Backup Files |
int |
4 |
Set the maximum allowed number of backups. This method will also delete the backup files, that exceeds the specified maximum. Set the value to zero if you want to remove all backups. |
maxFileSize |
Max File Size |
int |
32 768 |
Set the maximum size of the log file. This method will not immediately trim the current log file to the specified size if it already exceeds it. |
entriesThreshold |
Threshold Entries |
int |
100 |
This property controls how often the log file is flushed to the disk. If you set the value to 100, this means that the file is flushed after each 100th entry. |
timeThreshold |
Threshold Time |
int |
10 000 |
This property controls how often the log file is flushed to the disk. If you set the value to 10000, this means that the file is flushed every 10 seconds. |
logsDir |
Logs Folder |
String |
logs |
This optional property is used to tweak the default logs folder and make the bundles store their log massages to a different location. |
customFormatter |
Custom Formatter Class |
String |
- |
This property specifies the fully-qualified name of the custom formatter(see com.prosyst.util.log package) to use for this file logger. The custom formatter should be installed in a fragment bundle |
If enabled the bundle creates a new custom file, which can be placed anywhere and can include different information from the standard log.txt files. Refer to the Log Grouping guide for more details on using this feature.