Changes for page Logging Module
Last modified by Thomas Mortagne on 2022/12/09 11:37
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -xwiki:XWiki. ThomasMortagne1 +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 +