Changes for page Logging Module

Last modified by Thomas Mortagne on 2022/12/09 11:37

<
From version < 33.1 >
edited by Thomas Mortagne
on 2020/01/23 14:48
To version < 34.1 >
edited by Vincent Massol
on 2020/02/14 17:11
>
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.VincentMassol
ExtensionCode.ExtensionClass[0]
Description
... ... @@ -175,3 +175,10 @@
175 175  {{code language="velocity"}}
176 176  $services.logging.getLogger('My script').info('Hello {}', 'world')
177 177  {{/code}}
178 +
179 +Note that you'll need to enable the logger in the Logback configuration. If you wish to test quickly, you could use the ##org.xwiki## logger which is already enabled for the ##info## level. For example:
180 +
181 +{{code language="velocity"}}
182 +$services.logging.getLogger('org.xwiki').info('Hello {}', 'world')
183 +{{/code}}
184 +

Get Connected