[rt-users] logging in scrip conditions?
Ken Crocker
kfcrocker at lbl.gov
Thu Jun 11 14:39:51 EDT 2009
GravyFace,
I usually do this in my Dev environment where I first change the
RT_SiteConfig.pm file to turn on logging:
*
"Set($DevelMode, '1');". *This is OFF in production as it would make
everything run REALLY slow.
Then I insert the following code whereever I want to display
something in the log:
$RT::Logger->info("Resolution Type NOT SET!");
That should do it. Hope this helps.
Kenn
LBNL
On 6/11/2009 11:08 AM, GravyFace wrote:
> Have a scrip that's not firing for some reason. Want to write to the
> rt.log with some debug info, but the Logger doesn't seem to be
> accessible from the scrip conditions. Of course, my Perl-fu is pretty
> abyssmal. This possible?
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090611/ab03c0d5/attachment.htm>
More information about the rt-users
mailing list