Rt-3-0-0 Logging

I’m using rt-3-0-0. In my RT_SiteConf.pm I have, amongst other things:

Set($LogToSyslog , undef);
Set($LogToFile , ‘debug’);
Set($LogToFileNamed , “/usr/groups/rt/rt3/logs/rt.log”);

I have restarted Apache but I still get logging to syslog and nothing in the
log file. I have made the log file directory /usr/groups/rt/rt3/logs owned by
group ‘rt’, group writeable and apache runs RT scripts as user www, group rt.

Does anyone have any ideas as to what the problem might be?
Ian Grant, Computer Lab., William Gates Building, JJ Thomson Ave., Cambridge
Phone: +44 1223 334420

Can the user your webserver is running as write to that file (and create
it)? If not then it will not work I do believe. You could also add

    LogLevel debug
    ErrorLog /path/to/log.file

in your directive in httpd.conf for Apache (assuming you are
using apache)…Which would tell you if you can’t write to the above
mentioned log file :slight_smile:

Well…that’s my 2cents anyway…Anyone else?

Jonathan Kaufman

Foot Locker Inc.
E-Mail: jkaufman@footlocker.com

                                            cc:      Ian.Grant@cl.cam.ac.uk                                                   
                    Ian Grant               Subject: [rt-users] rt-3-0-0 Logging                                              
                    <Ian.Grant@cl.ca                                                                                          
                    m.ac.uk>                                                                                                  
                    Sent by:                                                                                                  
                    rt-users-admin@l                                                                                          
                    ists.fsck.com                                                                                             
                                                                                                                              
                                                                                                                              
                    04/04/2003 09:37                                                                                          
                    AM                                                                                                        

I’m using rt-3-0-0. In my RT_SiteConf.pm I have, amongst other things:

Set($LogToSyslog , undef);
Set($LogToFile , ‘debug’);
Set($LogToFileNamed , “/usr/groups/rt/rt3/logs/rt.log”);

I have restarted Apache but I still get logging to syslog and nothing in
the
log file. I have made the log file directory /usr/groups/rt/rt3/logs owned
by
group ‘rt’, group writeable and apache runs RT scripts as user www, group
rt.

Does anyone have any ideas as to what the problem might be?
Ian Grant, Computer Lab., William Gates Building, JJ Thomson Ave.,
Cambridge
Phone: +44 1223 334420

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Can the user your webserver is running as write to that file (and create
it)? If not then it will not work I do believe.

Yes it can, as I said in my mail below.

You could also add

    LogLevel debug
    ErrorLog /path/to/log.file

in your directive in httpd.conf for Apache (assuming you are
using apache)…Which would tell you if you can’t write to the above
mentioned log file :slight_smile:

Thanks for that suggestion. Weirdly, it just started working. (And yes, I am
certain I restarted Apache the first time!)

I’m using rt-3-0-0. In my RT_SiteConf.pm I have, amongst other things:

Set($LogToSyslog , undef);
Set($LogToFile , ‘debug’);
Set($LogToFileNamed , “/usr/groups/rt/rt3/logs/rt.log”);

I have restarted Apache but I still get logging to syslog and nothing in
the
log file. I have made the log file directory /usr/groups/rt/rt3/logs owned
by
group ‘rt’, group writeable and apache runs RT scripts as user www, group
rt.

Does anyone have any ideas as to what the problem might be?

Ian Grant, Computer Lab., William Gates Building, JJ Thomson Ave.,
Cambridge
Phone: +44 1223 334420


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Ian Grant, Computer Lab., William Gates Building, JJ Thomson Ave., Cambridge
Phone: +44 1223 334420

Good to hear that it’s working now. Did you ever find out why it wasn’t?

Jonathan Kaufman

                                            cc:      Ian Grant <Ian.Grant@cl.cam.ac.uk>, rt-users@lists.fsck.com                    
                    Ian Grant               Subject: Re: [rt-users] rt-3-0-0 Logging                                                
                    <Ian.Grant@cl.ca                                                                                                
                    m.ac.uk>                                                                                                        
                    Sent by:                                                                                                        
                    rt-users-admin@l                                                                                                
                    ists.fsck.com                                                                                                   
                                                                                                                                    
                                                                                                                                    
                    04/07/2003 04:34                                                                                                
                    AM                                                                                                              

Can the user your webserver is running as write to that file (and create
it)? If not then it will not work I do believe.

Yes it can, as I said in my mail below.

You could also add

    LogLevel debug
    ErrorLog /path/to/log.file

in your directive in httpd.conf for Apache (assuming you
are
using apache)…Which would tell you if you can’t write to the above
mentioned log file :slight_smile:

Thanks for that suggestion. Weirdly, it just started working. (And yes, I
am
certain I restarted Apache the first time!)

I’m using rt-3-0-0. In my RT_SiteConf.pm I have, amongst other things:

Set($LogToSyslog , undef);
Set($LogToFile , ‘debug’);
Set($LogToFileNamed , “/usr/groups/rt/rt3/logs/rt.log”);

I have restarted Apache but I still get logging to syslog and nothing in
the
log file. I have made the log file directory /usr/groups/rt/rt3/logs
owned
by
group ‘rt’, group writeable and apache runs RT scripts as user www, group
rt.

Does anyone have any ideas as to what the problem might be?

Ian Grant, Computer Lab., William Gates Building, JJ Thomson Ave.,
Cambridge
Phone: +44 1223 334420


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Ian Grant, Computer Lab., William Gates Building, JJ Thomson Ave.,
Cambridge
Phone: +44 1223 334420

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm