You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Victor Mandrovskyy <vi...@gmail.com> on 2020/01/15 13:25:43 UTC
Log4j2 mongodb3 appender issue
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,