Logging into rt.log from Scrips

Hi,

I am writing scrips to customize my RT in Fedora 9 with MySQL back-end. I have configured RT to log into a file (rt.log) in RT_SiteConfig.pm. Is it possible to get debug messages printed into the log file. I have added some print statements in scripts. I don’t find them printed in rt.log or the http log. I searched the mail archives. Couldn’t locate. Can someone give me some pointers.

Thanks,
Baskar N

DISCLAIMER:

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

Hello Baskar,

Set( $LogToFile, ‘debug’ );

$RT::Logger->debug(“here is my test message”);On Fri, Sep 4, 2009 at 4:33 PM, Baskaraganesan Natarajanbanatara@hcl.in wrote:

Hi,

I am writing scrips to customize my RT in Fedora 9 with MySQL back-end. I
have configured RT to log into a file (rt.log) in RT_SiteConfig.pm. Is it
possible to get debug messages printed into the log file. I have added
some print statements in scripts. I don’t find them printed in rt.log or the
http log. I searched the mail archives. Couldn’t locate. Can someone give
me some pointers.

Thanks,

Baskar N

DISCLAIMER:

The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect
the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of
this message without the prior written consent of the author of this e-mail
is strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.



The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Best regards, Ruslan.