You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Bipin (Jira)" <ji...@apache.org> on 2020/06/12 05:13:00 UTC

[jira] [Issue Comment Deleted] (LOG4J2-2866) Missing org.apache.log4j.RollingFileAppender in log4j-1.2-api.jar

     [ https://issues.apache.org/jira/browse/LOG4J2-2866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bipin updated LOG4J2-2866:
--------------------------
    Comment: was deleted

(was: My apologies for not being explicit that I'm looking to continue working with the existing Log4J 1 code & configuration (log4j.xml) seamlessly after upgrading to Log4J 2 and including the emulation jar log4j-1.2-api.jar in my classpath.

*I understand that's what is mentioned on this page* [https://logging.apache.org/log4j/2.x/manual/compatibility.html.]

Note that I have set Log4J 1 system property "log4j.configuration" as mentioned here and it is pointing to Log4J 1 configuration file (log4j.xml).

The upgrade has to be achieved with minimal changes to existing code & configuration since this is a core product and any implementation of this product should be able to take the new version of core product and start using it, ideally, with no changes or very small changes like adding a system property.

 

Secondly, I had already tried to use the RollingFileAppender of Log4J 2 in the log4j.xml (Log4J 1 configuration). But it seems like Log4J 1 expects a default constructor which is not present in this class.)

> Missing org.apache.log4j.RollingFileAppender in log4j-1.2-api.jar
> -----------------------------------------------------------------
>
>                 Key: LOG4J2-2866
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2866
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: log4j 1.2 emulation
>    Affects Versions: 2.13.3
>            Reporter: Bipin
>            Priority: Critical
>
> Even though it is mentioned in the documentation that following appenders are supported in log4j 1.2 emulation, it is seen that RollingFileAppender is not included in the emulation jar.
> h2. Supported Components
> h3. Appenders
>  * AsyncAppender
>  * ConsoleAppender
>  * DailyRollingFileAppender
>  * FileAppender
>  * NullAppender
>  * RewriteAppender (limited)
>  * RollingFileAppender
>  * SyslogAppender
>  
> Emulation documentation:
> [https://logging.apache.org/log4j/2.x/manual/compatibility.html]
>  



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