[Templates] basic question about logging from TT
Josh Rosenbaum
josh@infogears.com
Wed, 24 May 2006 17:54:42 -0600
What about the std(out|err) filters?
http://www.template-toolkit.org/docs/plain/Manual/Filters.html#stdout_options_
-- Josh
markd wrote:
> 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
>
> _______________________________________________
> templates mailing list
> templates@template-toolkit.org
> http://lists.template-toolkit.org/mailman/listinfo/templates