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
Hello,

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].
org.bson.codecs.configuration.CodecConfigurationException:
Can't find a codec for class
org.apache.logging.log4j.mongodb3.MongoDbDocumentObject.

Any suggestions?

Regards,