On 25 Aug 2014 at 18:26:28, Jason Clemons 
([email protected](mailto:[email protected])) wrote:

> Thanks for the response Vincent, I did see this article, but I'm having 
> trouble figuring out how to implement it. Ultimately, I just want the 
> equivalent of "Console.Log('foobar');" for some debugging code. I don't want 
> to setup a full blown logging architecture or anything heavy for my wiki. Is 
> there some simple example on the link you provided that I'm not interpreting 
> correctly?

If you’re inside XWiki then you already have logging configured! There’s 
nothing to do except use it as show in the link I gave. Which is exactly the 
equivalent of "Console.Log('foobar');”.

Thanks
-Vincent

> > On Aug 25, 2014, at 9:18 AM, "[email protected]" wrote:
> >
> >
> >> On 25 Aug 2014 at 18:02:12, Jason Clemons 
> >> ([email protected](mailto:[email protected])) wrote:
> >>
> >> Hello, can someone please give me an example of how to write to a log 
> >> using Velocity code?
> >>
> >> I'd really like to write a text file, but at this point any logging would 
> >> be tremendously helpful, thanks
> >
> > Since XWiki 6.1:
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/Logging+Module#HScripting
> >
> > Thanks
> > -Vincent
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to