Log4j2 mongodb3 appender issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Log4j2 mongodb3 appender issue

Victor Mandrovskyy

I had a problem while trying to log an exception.
When I call:
logger.error("An error message with an exception", new Exception("Some
serious problem"));

I get this message:
2020-01-15 14:43:15,670 main ERROR Unable to write to database
[noSqlManager{ description=Database, bufferSize=0, provider=mongoDb{
database=logs } }] for appender [Database].
Can't find a codec for class

Any suggestions?