Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-691

ERROR Appenders contains an invalid element or attribute "NoSql"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0-rc2
    • None
    • Appenders

    Description

      Since rc2, the NoSQL DB appender stopped working with the following error message:

      [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]]

      The configuration file I'm using is

      log4j2.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>
      

      The exact same configuration works find in rc1.

      Attachments

        Activity

          People

            Unassigned Unassigned
            p_w999 Phillip
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: