QnaList > Groups > Play-Framework > Apr 2016
faq

[play-framework] [Play 2.5.0] Custom Logging Using Log4j2 :- ERROR Null Object Returned For AsyncLogger In Loggers

Hi everyone, 
Following the 
link https://www.playframework.com/documentation/2.5.x/SettingsLogger, I am 
trying to configure custom logging to use log4j2 AsyncLogger. 
I want to use both sync and AsyncLogger 
(https://logging.apache.org/log4j/2.x/manual/async.html#Mixing_Synchronous_and_Asynchronous_Loggers). 
My log4j2.xml looks like:
I run my app  activator run -Dlog4j.configurationFile=conf/log4j2.xml and 
run into below error:
2016-04-04 18:35:48,026 pool-4-thread-5 ERROR Unable to invoke factory 
method in class class org.apache.logging.log4j.core.async.AsyncLoggerConfig 
for element AsyncLogger.
2016-04-04 18:35:48,029 pool-4-thread-5 ERROR Null object returned for 
AsyncLogger in Loggers.
After spending quite some time on it, I am starting to think if it's not 
supported in Play. So before creating an issue thought of checking if 
anyone else too ran into this or possible workaround.
Appreciate your assistance!
Thanks
-Mukul
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/e43d53fc-2dd7-46bc-9ce4-983d71ccd3c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

asked Apr 4 2016 at 18:58

Mukul Kumar 's gravatar image



Related discussions

Tagged

Group Play-framework

asked Apr 4 2016 at 18:58

active Apr 4 2016 at 18:58

posts:1

users:1

Play-framework

©2013 QnaList.com