[
https://issues.apache.org/jira/browse/LOG4J2-691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Phillip closed LOG4J2-691.
--------------------------
Resolution: Not a Problem
Issue caused by a change in packaging of log4j2 which required a changed in
dependency mgmt at the user side.
Adding log4j-nosql fixes to my project fixed it.
> ERROR Appenders contains an invalid element or attribute "NoSql"
> ----------------------------------------------------------------
>
> Key: LOG4J2-691
> URL: https://issues.apache.org/jira/browse/LOG4J2-691
> Project: Log4j 2
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 2.0-rc2
> Reporter: Phillip
> Labels: appender, couchdb, mongo, nosql
>
> Since rc2, the NoSQL DB appender stopped working with the following error
> message:
> {color:blue}
> [2014-06-26T19:24:10.654+0200] [glassfish 4.0] [INFO] [] [] [tid:
> _ThreadID=18 _ThreadName=Thread-3] [timeMillis: 1403803450654] [levelValue:
> 800] [[
> 2014-06-26 19:24:10,653 ERROR Appenders contains an invalid element or
> attribute "NoSql"]]
> [2014-06-26T19:24:10.748+0200] [glassfish 4.0] [INFO] [] [] [tid:
> _ThreadID=18 _ThreadName=Thread-3] [timeMillis: 1403803450748] [levelValue:
> 800] [[
> 2014-06-26 19:24:10,748 ERROR Unable to locate appender databaseAppender
> for logger]]
> {color}
> The configuration file I'm using is
> {code:title=log4j2.xml|lang=xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <Configuration status="info">
> <Appenders>
> <NoSql name="databaseAppender">
> <CouchDb databaseName="kbomaplog" protocol="http"
> server="127.0.0.1"
> port="5984" username="meh" password="meh"
> ignoreExceptions="false" />
> </NoSql>
> <!--RollingFile name="RollingFile" fileName="logs/kbomap.log"
> filePattern="logs/app-%d{MM-dd-yyyy}.log.gz"
> ignoreExceptions="false">
> <PatternLayout>
> <Pattern>%d %p %c{1.} [%t] %m%n</Pattern>
> </PatternLayout>
> <TimeBasedTriggeringPolicy />
> </RollingFile>
> <Failover name="Failover" primary="databaseAppender">
> <Failovers>
> <AppenderRef ref="RollingFile" />
> </Failovers>
> </Failover-->
> </Appenders>
> <Loggers>
> <Root level="info">
> <AppenderRef ref="databaseAppender" />
> </Root>
> </Loggers>
> </Configuration>
> {code}
> The exact same configuration works find in rc1.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]