3.20. <Log SYSLOG> Previous topic Parent topic Child topic Next topic

This optional clause creates a SYSLOG logger, which will log all messages with a priority level of Trace or more to the syslog system. Log SYSLOG requires Sys::Syslog. The logging is in addition to any logging to the file defined by LogFile. For more information, see Section 3.5.13. LogFile.
Messages are logged to syslog with priority levels that depend on the severity of the message. 5 priority levels have been defined, and they are logged to the equivalent syslog priority. See the Trace parameter for a description of the priority levels supported.
Messages are logged to syslog with priority levels that depend on the severity of the message. 5 priority levels have been defined, and they are logged to the equivalent syslog priority. See the Trace parameter for a description of the priority levels supported.
You must also ensure that your host's syslog is configured to do something with ‘err’, ‘warning’, ‘notice’, ‘info and ‘debug’ priority messages from the Syslog facility you specify, otherwise you will not see any messages. See /etc/syslog.conf, or its equivalent on your system.
Tip
The logger becomes active when it is encountered in the configuration file. It will log parse errors from later in the configuration file and subsequent run-time events. Parse errors from earlier in the configuration file will not be logged through this clause.
Tip
You can place a <Log xxxxxx> clause inside any clause in the configuration file. This will cause messages originating from within that clauses code to be logged with the logger prior to being logged with any global loggers. This can be handy for debugging or tracing only certain Realms or AuthBy clauses:
<Handler>
      # This will log messages from within the Handler
      <Log SYSLOG>
            #Trace 2
            ...
      </Log>
</Handler>