Cherokee Web Server: Logging system

Logging system

Contents

Logging system

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.


Loggers

The loggers are a type of Cherokee modules to write the server log information using different destinations and/or formats. It accepts configuration for:


Combined logger

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.

Parameters

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.

Examples

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.


NCSA logger

The ncsa logger implements the NCSA log format.

Parameters

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.

Examples

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.


W3C logger

The w3c logger implements the W3C log format

Parameters

This logger accepts one parameter:

If it is not set, the information will be sent to syslog.

Examples

Log w3c {
   LogFile /var/log/cherokee.w3c.log
}

Send the log information to /var/log/cherokee.w3c.log in the W3C log format.