Controlling Log Switches 
Note
This topic is not valid for SAP systems that run on Microsoft Windows NT hosts. The logging processes described here are not required on these platforms.
A log switch takes palce for central logging if the system replaces the old log with the active log. A log switch takes place for local logging when the system starts to overwrite the log file. The central log switch is controlled by the parameter rslg/max_diskspace/central. The local log switch is controlled by the parameter rslg/max_diskspace/local.
Parameters rslg/max_diskspace/local and rslg/max_diskspace/central specify the length of log files. If these values are high then a switch takes palce less often than with lower values. In addition to this, a higher value for the log size can help to avoid messages becoming lost if a high number of messages suddenly arrive which then triggers a quick log switch.
To control the central log switch, set the parameter rslg/max_diskspace/central to the maximum size for the combined length of the current and old system logs. You must set this parameter in the system where the central log is. The system executes the log switch when the size of the active log file reaches roughly half the value specified in the rslg/max_diskspace/central parameter.
Note
Parameters rslg/max_diskspace/central and rslg/max_diskspace/local do not have any influence on the trace logs that are used by the log system processes to records their own error messages. These logs are not deleted automatically: You have to delete them yourself if you requested them using special options.