Hello Log4j2 experts,
I need help with the log4j2-configuration. Thanks in advance!

2013-08-27 12:55:20,415 ERROR Error processing element List: CLASS_NOT_FOUND
2013-08-27 12:55:20,415 ERROR Error processing element FastRollingFile:
CLASS_NOT_FOUND
2013-08-27 12:55:20,430 DEBUG Calling createProperty on class
org.apache.logging.log4j.core.config.Property for element property with
params(name="filename", value="logfiles/ACOS-RTU-%d{MM-dd-yyyy}.log")
2013-08-27 12:55:20,430 DEBUG Calling configureSubstitutor on class
org.apache.logging.log4j.core.config.plugins.PropertiesPlugin for element
properties with
params(Properties={filename=logfiles/ACOS-RTU-%d{MM-dd-yyyy}.log},
Configuration(logserviceconfiguration))
2013-08-27 12:55:20,430 DEBUG Generated plugins in 0.000137901 seconds
2013-08-27 12:55:20,430 DEBUG Calling createLayout on class
org.apache.logging.log4j.core.layout.PatternLayout for element PatternLayout
with params(pattern="%m%n", Configuration(logserviceconfiguration), null,
charset="null", alwaysWriteExceptions="null")
2013-08-27 12:55:20,430 DEBUG Generated plugins in 0.000085547 seconds
2013-08-27 12:55:20,430 DEBUG Calling createAppender on class
org.apache.logging.log4j.core.appender.ConsoleAppender for element Console
with params(PatternLayout(%m%n), null, target="null", name="STDOUT",
follow="null", ignoreExceptions="null")
2013-08-27 12:55:20,430 DEBUG Jansi is not installed
2013-08-27 12:55:20,430 DEBUG Calling createRoute on class
org.apache.logging.log4j.core.appender.routing.Route for element Route with
params(ref="null", key="null", Node=Route)
2013-08-27 12:55:20,430 ERROR A route must specify an appender reference or
an appender definition
2013-08-27 12:55:20,430 ERROR Route contains an invalid element or attribute
"appender-ref"
2013-08-27 12:55:20,430 DEBUG Calling createRoute on class
org.apache.logging.log4j.core.appender.routing.Route for element Route with
params(ref="null", key="Audit", Node=Route)
2013-08-27 12:55:20,430 ERROR A route must specify an appender reference or
an appender definition
2013-08-27 12:55:20,430 ERROR Null object returned for Route in Routes
2013-08-27 12:55:20,430 ERROR Null object returned for Route in Routes
2013-08-27 12:55:20,430 DEBUG Calling createRoutes on class
org.apache.logging.log4j.core.appender.routing.Routes for element Routes
with params(pattern="${sd:type}", Routes={, })
2013-08-27 12:55:20,430 ERROR No routes configured
2013-08-27 12:55:20,430 DEBUG Calling createAppender on class
org.apache.logging.log4j.core.appender.routing.RoutingAppender for element
Routing with params(name="Routing", ignoreExceptions="null", Routes(null),
Configuration(logserviceconfiguration), null, null)
2013-08-27 12:55:20,430 ERROR No routes defined for RoutingAppender
2013-08-27 12:55:20,430 ERROR Null object returned for Routing in appenders
2013-08-27 12:55:20,430 DEBUG Calling createAppenders on class
org.apache.logging.log4j.core.config.plugins.AppendersPlugin for element
appenders with params(Appenders={STDOUT, })
2013-08-27 12:55:20,430 DEBUG Calling createAppenderRef on class
org.apache.logging.log4j.core.config.AppenderRef for element appender-ref
with params(ref="Routing", level="null", null)
2013-08-27 12:55:20,430 DEBUG Calling createLogger on class
org.apache.logging.log4j.core.config.LoggerConfig for element logger with
params(additivity="false", level="info", name="EventLogger",
includeLocation="null", AppenderRef={Routing}, Properties={},
Configuration(logserviceconfiguration), null)
2013-08-27 12:55:20,430 DEBUG Calling createAppenderRef on class
org.apache.logging.log4j.core.config.AppenderRef for element appender-ref
with params(ref="FastRollingFile", level="null", null)
2013-08-27 12:55:20,430 DEBUG Calling createLogger on class
org.apache.logging.log4j.core.config.LoggerConfig$RootLogger for element
root with params(additivity="null", level="debug", includeLocation="null",
AppenderRef={FastRollingFile}, Properties={},
Configuration(logserviceconfiguration), null)
2013-08-27 12:55:20,430 DEBUG Calling createLoggers on class
org.apache.logging.log4j.core.config.plugins.LoggersPlugin for element
loggers with params(Loggers={EventLogger, root})
2013-08-27 12:55:20,430 ERROR Unable to locate appender Routing for logger
EventLogger
2013-08-27 12:55:20,430 ERROR Unable to locate appender FastRollingFile for
logger 
2013-08-27 12:55:20,446 DEBUG Reconfiguration completed


<?xml version="1.0" encoding="UTF-8"?>
<configuration status="debug" name="logserviceconfiguration"
packages="de.ids.acos.artu">
  <properties>
    <property
name="filename">logfiles/ACOS-RTU-%d{MM-dd-yyyy}.log</property>
  </properties>
  <appenders>
    <Console name="STDOUT">
    <PatternLayout pattern="%m%n"/>
    </Console>
    <List name="List">
      <ThresholdFilter level="debug"/>
    </List>
    <Routing name="Routing">
      <Routes pattern="$${sd:type}">
        <Route>
          <FastRollingFile name="FastRollingFile" fileName="${filename}"
filePattern="logfiles/ACOS-RTU-%d{MM-dd-yyyy}.log.gz">
            <PatternLayout>
              <pattern>%d %p %c{1.} [%t] %m%n</pattern>
            </PatternLayout>
            <Policies>
              <TimeBasedTriggeringPolicy />
              <SizeBasedTriggeringPolicy size="1 MB"/>
            </Policies>
          </FastRollingFile>
        </Route>
        <Route appender-ref="STDOUT" key="Audit"/>
      </Routes>
    </Routing>
  </appenders>
  <loggers>
    <root level="debug">
      <appender-ref ref="STDOUT"/>
    </root>
  </loggers>
</configuration>



--
View this message in context: 
http://apache-logging.6191.n7.nabble.com/Error-processing-element-List-CLASS-NOT-FOUND-tp40194.html
Sent from the Log4j - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to