[Anthill-pro] Logging from Scripts

Steve Boone sbb at urbancode.com
Thu Sep 20 11:37:59 CDT 2007


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20070920/61e87f03/attachment.htm


More information about the Anthill-pro mailing list