[rt-users] $LogDir in RT 3-0-2
Jim Mozley
jim.mozley at exponential-e.com
Fri May 16 05:35:47 EDT 2003
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Found out some more on this and thought I'd try to answer my own post,
please enlighten me if I'm incorrect.
> I the have settings in RT_SiteConfig.pm:
>
> Set($LogToSyslog , 'debug');
> Set($LogToScreen , 'error');
> Set($LogToFile , undef);
> Set($LogToFileNamed , "$LogDir/rt.log"); #log to rt.log.<pid>.<user>
>
> I assume I need to change $logToFile from undef to something like 'info'
to
> get messages of info level and above?
Have done the above and changed ownership of /opt/rt3/var/log so that apache
can write to it (without this RT won't work as it cannot write logs).
Getting some useful info in the logs now.
> I notice from looking at email archives that version 2 config.pm has
$LogDir
> defined further up in the file, but is not in the default configuration
for
> version 3. Do I need to add something like Set($LogDir ,
"/opt/rt3/var/log")
> to the config.pm, depending on where I would like the log files to go?
In the <rt install dir>/lib/RT.pm $LogDir is set. I guess I could alter it
there if necessary but it would seem neater to change this in
RT_SiteConfig.pm.
A humble suggestion:
I don't know if this is something that can be added to the installation
process of version 3, but it would be useful to have logging working by
default. Could the appropriate configuration settings be put in RT_Config.pm
and permissions set on the default log directory as they seem to be on
mason_data and session_data in the log directory? Would help the initial
configuration process and the newbie greatly.
Regards,
Jim
More information about the rt-users
mailing list