Configure Log Format

- Select log format (for Access log).
- Configure log rotation.

When ready, click the Save button to save changes.

Selecting log format

You can select one of the predefined formats the web server will write logs from the Log format drop-down menu. For more information about log formats, please refer to the official Apache website.

Configuring Log Rotation

The log files may keep growing until they fill all the disk space available. To avoid this, you can enable logs rotation.
What is logs rotation?
Rotating logs is copying them to a backup file and creating a new log. Backup logs are usually removed when they are to far out of date. As a result, you have the only one active log file the web server writes logs into and several archive files that can be compressed with the special archiver. For example: the active log file access.log , and archives access.log.1.lzo, access.log.2.lzo, ..., access.log.x.lzo.

- You can check the Enabled box to enable logs rotation.
- Type the number of log file backups to store into the Rotate the log file before removing field.
- Select the conditions of backing up the log file:

  > You can set the option button to Rotate the log every and select the period of backing up the log file from the drop-down menu (day, week, or month). In this case, the log file will be backed up automatically every day, week, or month (as you select) without respect to the size of the log file.
  > OR
  > You can set the option button to Rotate when the log size becomes greater than and type the threshold size of the log file. In this case, the size of a log file will be monitored and a log file will be backed up as soon as the size of a log file exceeds the threshold value.

- You can check the Compress the log file after rotation box to compress the log file backups using the special archiver.