Hi Pooja,

On Fri, Mar 4, 2022 at 10:32 AM Pooja Pandey
<pooja.pan...@asg.com.invalid> wrote:
> We are calling
> Logger.getLogger(<name>, <loggerFactory>)
>
> And in AppenderAttachableImpl aai;, this is returning  AppenderWrapper, which 
> we are trying to cast to FileAppender as we were doing when we were using 
> log4j1.x.

That will not work, since the Log4j 1.x bridge does not actually use
`org.apache.log4j.FileAppender`, but the Log4j 2.x version of this
appender.

Can you explain what is your code doing? Probably this can be more
easily obtained directly in Log4j 2.x.

Piotr

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to