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

[jira] [Commented] (LOG4J2-3252) Not able to implement FileAppender in log4j2 with layout

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

Volkan Yazici commented on LOG4J2-3252:
---------------------------------------

If I understand your question right, you need to use {{FileAppender.newBuilder()}}. Mind closing the ticket if my answer addresses your question, please?

> Not able to implement FileAppender in log4j2 with layout
> --------------------------------------------------------
>
>                 Key: LOG4J2-3252
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3252
>             Project: Log4j 2
>          Issue Type: Question
>            Reporter: Arunkumar K
>            Priority: Trivial
>         Attachments: log4j2.png
>
>
> I had implementation of Fileappender in log4j. Now I planned to move it to log4j2. I am not able to implement in log4j2 as we are using pattern layout, consoleappender, addapendr method along with this. in log4j.jar the import for file appender is: import org.apache.log4j.FileAppender; but in log4j2, the import is: import org.apache.logging.log4j.core.appender.FileAppender; Can anyone help for new implementation?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)