logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vina Martin <vina.mar...@connexta.com>
Subject FailoverAppender is not starting
Date Mon, 10 Jul 2017 19:20:13 GMT
I’m seeing "ERROR appender Failover has no parameter that matches element Failovers” when
I have a failover appender configured.
I have reported the issue here: https://issues.apache.org/jira/browse/LOG4J2-1973

The following is my configuration file, am I missing anything required to make the failover
appender work?

<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
        <Console name="Console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
        <RollingFile name="RollingFile" fileName="logs/app.log" filePattern="logs/app-%d{MM-dd-yyyy}.log.gz"
                <Pattern>%d %p %c{1.} [%t] %m%n</Pattern>
            <TimeBasedTriggeringPolicy />
        <Failover name="Failover" primary="RollingFile">
                <AppenderRef ref="Console"/>
        <Root level="error">
            <AppenderRef ref="Failover"/>
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message