[Templates] basic question about logging from TT

markd mark@immermail.com
Wed, 24 May 2006 15:10:14 -0700


Maybe a naive question here, but is there some typical strategy
for logging from TT?

I know I can do:

 [% PERL %]
   print STDERR "message";
 [% END %]

But tedious (and presumably inefficient?)

I'm passing the Apache request object as a param, so I can
do:

 [% r.log_notice("message") %]

which is reasonsable.

But I wonder if I'm missing something else (perhaps obvious?)


Thanks,

Mark