You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2022/02/05 18:43:00 UTC
[jira] [Updated] (LOG4J2-3392) NoSQLAppender mongodb out of box exception support
[ https://issues.apache.org/jira/browse/LOG4J2-3392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory updated LOG4J2-3392:
------------------------------------
Summary: NoSQLAppender mongodb out of box exception support (was: NoSQLAppender mongodb4 out of box exception support)
> NoSQLAppender mongodb out of box exception support
> --------------------------------------------------
>
> Key: LOG4J2-3392
> URL: https://issues.apache.org/jira/browse/LOG4J2-3392
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.16.0
> Reporter: Omer U
> Assignee: Gary D. Gregory
> Priority: Major
>
> Logging an exception with
> LOG.warn("test log", new RuntimeException("test ex"));
>
> does not work and throws the following exception:
> org.apache.logging.log4j.core.appender.AppenderLoggingException: Unable to write to database in appender: Can't find a codec for class org.apache.logging.log4j.mongodb4.MongoDb4DocumentObject.
>
> There's a blog post [1] providing a workaround which is rewrite of MongoDb4Provider which causes classpath issues.
>
>
> [1]https://blog.termian.dev/posts/log4j2-mongodb-appender/
--
This message was sent by Atlassian Jira
(v8.20.1#820001)