[Anthill-pro] Logging from Scripts

Christopher Power chrispower36 at gmail.com
Thu Sep 20 11:52:56 CDT 2007


That works great Steve, thanks.

Chris


On 9/20/07, Steve Boone <sbb at urbancode.com> wrote:
>
> Chris,
>
> Use the following
>
> static transient private org.apache.log4j.Logger log =
> org.apache.log4j.Logger.getLogger("MESSAGE");
>
> Then you can do
>
> log.warn(myVar);
>
>
> The "MESSAGE" can be changed to anything you prefer.  It will just preface
> every output with that String.
>
> Regards,
> Steve Boone
>
>  On 9/20/07, Christopher Power <chrispower36 at gmail.com> wrote:
>
> >  How do I log information from scripts?  Specifically I am trying to
> > debug a scripted stamping template and would like to log the value of some
> > variables.
> >
> > Thanks,
> > Chris
> >
> > _______________________________________________
> > Anthill-pro mailing list
> > Anthill-pro at lists.urbancode.com
> > http://lists.urbancode.com/mailman/listinfo/anthill-pro
> >
> >
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20070920/19518115/attachment.htm


More information about the Anthill-pro mailing list