You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Kevin Risden (JIRA)" <ji...@apache.org> on 2018/09/27 13:05:00 UTC

[jira] [Commented] (KNOX-1462) Migrate from Log4j 1.x to 2.x

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

Kevin Risden commented on KNOX-1462:
------------------------------------

I started a bit on this. Rough so far so just in a branch. [https://github.com/risdenk/knox/commits/KNOX-1462]

I was able to:
 * Removed/excluded log4j 1.x dependencies
 * update appenders to work with Log4j2
 * Migrate from MDC to ThreadContext
 * Migrate some of the log4j.properties to log4j2.xml files
 * Check that tests are passing for logging on JDK 8

I need to go back and clean it up but promising.

> Migrate from Log4j 1.x to 2.x
> -----------------------------
>
>                 Key: KNOX-1462
>                 URL: https://issues.apache.org/jira/browse/KNOX-1462
>             Project: Apache Knox
>          Issue Type: Improvement
>            Reporter: Kevin Risden
>            Assignee: Kevin Risden
>            Priority: Blocker
>             Fix For: 1.2.0
>
>
> Assigning to version 1.2.0 to have a discussion about it.
> Log4j 1.x went EOL in August 2015. JDK 9+ support (KNOX-1458) will require Log4j 2 since Knox uses MDC for all the audit logging. More details about the issue and migration are found here:
>  * [https://blogs.apache.org/logging/entry/moving_on_to_log4j_2]
>  * [https://logging.apache.org/log4j/2.x/manual/migration.html]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)