E.5. Logging

 < Day Day Up > 

The default configuration logs anything except debugging information to syslog. See the Log::Dispatch documentation for more information about alternate delivery mechanisms.

It may make sense to send error and higher by email to some administrator. If you do this, be careful that this email isn't sent to back to the current RT instance.

$LogToSyslog, $LogToScree, and $LogToFile

These options define minimum log level that each output mechanism logs. From lowest level to highest, the choices are:


For historical reasons, you must use '' (empty string) instead of 0 or undef when disabling a logging mechanism.

     Set($LogToSyslog    , 'debug');     Set($LogToScreen    , 'error');     Set($LogToFile      , '');     Set($LogDir, '/home/rspier/projects/rt-3.4/var/log');     Set($LogToFileNamed , "rt.log"); 


If you are using Syslog logging, this directive allows you to override any other options RT passes to Log::Dispatch::Syslog. See the Log::Dispatch::Syslog documentation for more information about interesting flags, including facility, logopt, and ident.

On systems such as Solaris or UnixWare that don't provide a UNIX domain socket to syslog, set this ( socket => 'inet' ).

 @LogToSyslogConf = (  ) unless (@LogToSyslogConf); 

     < Day Day Up > 

    RT Essentials
    RT Essentials
    ISBN: 0596006683
    EAN: 2147483647
    Year: 2005
    Pages: 166

    Similar book on Amazon

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net