You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Jeslyn (Jira)" <ji...@apache.org> on 2020/06/19 09:22:00 UTC
[jira] [Created] (LOG4J2-2876) ERROR appender NoSql has no
parameter that matches element MongoDb2
Jeslyn created LOG4J2-2876:
------------------------------
Summary: ERROR appender NoSql has no parameter that matches element MongoDb2
Key: LOG4J2-2876
URL: https://issues.apache.org/jira/browse/LOG4J2-2876
Project: Log4j 2
Issue Type: Question
Reporter: Jeslyn
attached is my log4j2.xml
<Appenders>
<NoSql name="databaseAppender">
<MongoDb2 databaseName="test" collectionName="testCollection"
server="localhost" port="27017" username="" password="" />
</Appenders>
and also my build.gradle
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.13.3'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.13.3'
compile group: 'org.apache.logging.log4j', name: 'log4j-mongodb2', version: '2.13.3'
compile group: 'org.apache.logging.log4j', name: 'log4j-nosql', version: '2.9.1'
compile group: 'org.mongodb', name: 'mongo-java-driver', version: '3.12.5'
but i keep getting the following error:
2020-06-19 17:20:36,913 main ERROR appender NoSql has no parameter that matches element MongoDb2.
I simply cannot get it to log to MongoDb. Kindly advise.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)