[ 
https://issues.apache.org/jira/browse/JSPWIKI-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17379172#comment-17379172
 ] 

Juan Pablo Santos Rodríguez commented on JSPWIKI-795:
-----------------------------------------------------

As of 2.11.0-git-06,
* Log4J2 is the new logging framework used by JSPWiki. Although all Log4J (and 
SLF4J) calls are transparently routed to Log4J2, the log configuration inside 
{{jspwiki.properties}} has changed, so installations with customized logging 
configuration will need to be set up again.
 * Existing 3rd party plugins, filters and providers will continue to work as 
expected, as Log4J calls will be routed to Log4J2, but the use of Log4J2 should 
be preferred onwards.
 * By default, JSPWiki will configure Log4J2 from the 
{{jspwiki[-custom].properties}} files, expecting log configuration to be there 
using [Log4J2 properties 
syntax|https://logging.apache.org/log4j/2.x/manual/configuration.html#Properties]
 * {{jspwiki.use.external.logconfig=true}} can still be used on 
{{jspwiki[-custom].properties}} files to bypass JSPWiki log re-configuration 
and rely directly on Log4J2 configuration mechanisms
 * Note that Log4J calls are still used throughout JSPWiki; they'll be replaced 
by equivalent Log4J2 calls later on, but this will be an implementation detail 
that should be transparent to end users.
 * *IMPORTANT*: if you're using a [JSPWiki customized 
.war|https://jspwiki-wiki.apache.org/Wiki.jsp?page=StartingPointForCustomExtensions#section-StartingPointForCustomExtensions-BuildingACustomized.warFileWithYourExtensions],
 please ensure that neither Log4J nor any SLF4J implementation end up in your 
customized {{.war}}.

> Update logging subsystem in JSPWiki
> -----------------------------------
>
>                 Key: JSPWIKI-795
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-795
>             Project: JSPWiki
>          Issue Type: Improvement
>            Reporter: Glen Mazza
>            Priority: Major
>
> Juan Pablo recommended a switch to SLF4J + [Logback | Log4j2].



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to