Last active
May 10, 2016 02:53
-
-
Save xtender/ecd20ed8febefe62bca065c858d92598 to your computer and use it in GitHub Desktop.
RabbitMQ+AmqpAppender
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-05-10 05:49:33,741 main WARN The DocumentBuilderFactory [oracle.xml.jaxp.JXDocumentBuilderFactory@556333] does not support XInclude: java.lang.UnsupportedOperationException: setXIncludeAware is not supported on this JAXP implementation or earlier: class oracle.xml.jaxp.JXDocumentBuilderFactory | |
2016-05-10 05:49:33,744 main WARN The DocumentBuilderFactory [oracle.xml.jaxp.JXDocumentBuilderFactory@556333] does not support the feature [http://apache.org/xml/features/xinclude/fixup-base-uris]: javax.xml.parsers.ParserConfigurationException | |
2016-05-10 05:49:33,745 main WARN The DocumentBuilderFactory [oracle.xml.jaxp.JXDocumentBuilderFactory@556333] does not support the feature [http://apache.org/xml/features/xinclude/fixup-language]: javax.xml.parsers.ParserConfigurationException | |
2016-05-10 05:49:33,755 main ERROR Appenders contains an invalid element or attribute "RabbitMQ" | |
2016-05-10 05:49:33,758 main ERROR Unable to locate appender "RabbitMQ" for logger config "root" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="WARN" monitorInterval="30"> | |
<Properties> | |
<Property name="filename">logs/default.log</Property> | |
</Properties> | |
<Appenders> | |
<Console name="Console" target="SYSTEM_OUT"> | |
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/> | |
</Console> | |
<File name="File" fileName="${filename}"> | |
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/> | |
</File> | |
<RabbitMQ name="rabbitmq" | |
addresses="foo:5672,bar:5672" user="admin" password="admin" virtualHost="/" | |
exchange="log4j2" exchangeType="topic" declareExchange="true" durable="true" autoDelete="false" | |
applicationId="myAppId" routingKeyPattern="%X{applicationId}.%c.%p" | |
contentType="text/plain" contentEncoding="UTF-8" generateId="true" deliveryMode="NON_PERSISTENT" | |
charset="UTF-8" | |
senderPoolSize="3" maxSenderRetries="5"> | |
</RabbitMQ> | |
</Appenders> | |
<Loggers> | |
<Root level="warn"> | |
<AppenderRef ref="File"/> | |
<AppenderRef ref="RabbitMQ"/> | |
</Root> | |
</Loggers> | |
</Configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.springframework.amqp</groupId> | |
<artifactId>spring-amqp</artifactId> | |
<version>1.6.0.M2</version> | |
<exclusions> | |
<exclusion> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-core</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.amqp</groupId> | |
<artifactId>spring-rabbit</artifactId> | |
<version>1.6.0.M2</version> | |
</dependency> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment