How to configure logging and logs rotation in Reuters Bridge
ReutersBridge provides the possibility to set up logging and logs rotation by configuring its own config.cfg and/or log4cxx.properties file.
Configuring config.cfg file
The following parameters in the config.cfg file are related to logging:
Parameter | Description | Example |
---|---|---|
App.DailyBackup.Enable | Enables daily backup Valid values: true/false | App.DailyBackup.Enable = true |
App.DailyBackup.Source | The path to the directory which needs to be backed up | App.DailyBackup.Source = logs/ |
App.DailyBackup.Destination | The path to the backup directory | App.DailyBackup.Destination = logs/backup/ |
App.DailyBackup.Exclude | File(-s) which needs to be excluded from the backup This parameter is very useful if you work with start/stop schedule configuration. | App.DailyBackup.Exclude = reuters.bridge.log;storage.xml |
Configuring log4cxx.properties file
In addition, the ReutersBridge package contains the log4cxx.properties configuration file from the log4cxx logging framework for C++ (patterned after Apache log4j). It provides a huge number of possibilities to configure logging and logs rotation.
The full documentation can be found here:Â http://logging.apache.org/log4cxx/usage.html
The section about logs rotation is here:Â http://logging.apache.org/log4cxx/apidocs/classlog4cxx_1_1_daily_rolling_file_appender.html