Changes for page Logging Module

Last modified by Thomas Mortagne on 2014/09/19 09:09

From version 22.1
edited by Thomas Mortagne
on 2014/06/18 07:47
To version 23.1
edited by Valdis Vitolins
on 2014/08/26 17:14
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.ThomasMortagne
1 +xwiki:XWiki.valdisvi
ExtensionCode.ExtensionClass[0]
Description
... ... @@ -149,5 +149,8 @@
149 149  You can ask for a proper ##Logger## using ##Logger getLogger(String name)##
150 150  
151 151  {{code language="velocity"}}
152 -$services.logging.getLogger('My script').info('Hello {}', 'world')
152 +{{velocity}}
153 +#set($logger = $services.logging.getLogger("My script"))
154 +$logger.info("foobar")
155 +{{/velocity}}
153 153  {{/code}}

Get Connected