Contents |
The logging system allows to save the server activity in a number different ways and formats.
The scope of a log configuration is a Virtual Server. Nevertheless, there is a global configuration parameter for the logging sub-system:
Note: If a virtual server doesn't have a logger set up it will not log anything.
The loggers are a type of Cherokee modules to write the server log information using different destinations and/or formats. It accepts configuration for:
The combined logging module implements the most common used format: almost every log parsing programs works with this format. It is the default format for Cherokee, Apache and other web servers.
This logger module accepts two parameters:
If some of the parameters are not set, it will write the messages to syslog instead of writting it into a file.
Log combined
Use combined (Apache log compatible) to send all the logging information to syslog.
Log combined { AccessLog /var/log/cherokee.access ErrorLog /var/log/cherokee.error }
It uses the combined logger to write two different logs: one for accesses and other for errors.
The ncsa logger implements the NCSA log format.
This logger module accepts two parameters:
If some of the parameters are not set, it will write the messages to syslog instead of writting it into a file.
Log ncsa
Use NCSA logger to send all the logging information to syslog.
Log ncsa { AccessLog /var/log/cherokee.access ErrorLog /var/log/cherokee.error }
It uses the NCSA logger to write two different logs: one for accesses and other for errors.
The w3c logger implements the W3C log format
This logger accepts one parameter:
If it is not set, the information will be sent to syslog.
Log w3c { LogFile /var/log/cherokee.w3c.log }
Send the log information to /var/log/cherokee.w3c.log in the W3C log format.