Managing Gateway logs

About this task

The gateway component recognizes two more configuration keywords, which are contained in the gateway configuration file. You can use these keywords to configure log rotation and to specify the maximum period for which log files are retained.
LogRotation
Controls the period after which an older log file is overwritten. Log rotation can be disabled.
Table 1. LogRotation settings.
LogRotation Description Suffix for hourly rollove.r Suffix for daily rollover.
Daily Overwrite log files after 1 day. 00H to 23H. Not valid.
Weekly Overwrite log files after 1 week. Mon-00H to Sun-23H. Mon - Sun.
Monthly Overwrite log files after 1 month. 01-00H to 31-23H. 01 - 31
Disabled LogRotation is disabled YYYY-MM-DD-hh YYYY-MM-DD
LogRollover
Controls the period after which a new log file is started. This period must be smaller than the LogRotation period, therefore not all combinations are valid. LogRollover cannot be disabled.
Table 2. LogRollover settings
LogRollover Description Comments
Hourly Start a new log file on the hour. Recommended for busy gateways or when you use log levels higher than 2.
Daily Start a new log file every day. Default setting.