logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paladox <thomasmulhall...@yahoo.com.INVALID>
Subject Re: How to use “callAppenders” under log4j2
Date Sun, 12 May 2019 16:47:21 GMT
 I think i've found a way to do this, would doing this:
    LoggerConfig loggerConfig = new LoggerConfig(logger.toString(), null, false);    loggerConfig.log(logEntry.asLoggingEvent());
be the equivalent?
    On Sunday, 12 May 2019, 16:49:06 BST, Paladox <thomasmulhall410@yahoo.com.INVALID>
  Thanks for replying, I’m trying to do https://github.com/google/flogger/pull/82/files#diff-9a6ef9c14f03fa6a0ad09da1dd5707f3R74 (Even
though it’s a new file it’s a copy from the log4j1 version in that repo but modified for
    On Sunday, 12 May 2019, 16:44:13 BST, Apache <ralph.goers@dslextreme.com> wrote: 

 What are you trying to do?


> On May 12, 2019, at 8:06 AM, Paladox <thomasmulhall410@yahoo.com.invalid> wrote:
> Hi, I’m currently stuck at “callAppenders” which appears to not exist.
> log4j2/src/main/java/com/google/common/flogger/backend/log4j2/Log4j2LoggerBackend.java:76:
error: cannot find symbol
>    logger.callAppenders(logEntry.asLoggingEvent());
> Which is not in Logger like it was in Log4j1 I guess.
> I’m not sure how to fix this so any help is appreciated please.

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message