-
Notifications
You must be signed in to change notification settings - Fork 10
/
exampleConfig.xml
executable file
·24 lines (24 loc) · 1.1 KB
/
exampleConfig.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8" ?>
<log4php:configuration xmlns:log4php="http://logging.apache.org/log4php/" threshold="all">
<appender name="MyAMQPAppender" class="LoggerAppenderAMQP">
<param name="host" value="rabbitmq.lan" />
<param name="port" value="5672" />
<param name="vhost" value="my_vhost" />
<param name="login" value="my_login" />
<param name="password" value="my_password" />
<param name="exchangeName" value="my_exchange" />
<param name="routingKey" value="some_routing_key" />
<param name="contentType" value="application/json" />
<layout class="LoggerLayoutGelf" />
</appender>
<appender name="MyGraylog2Appender" class="LoggerAppenderGraylog2">
<param name="host" value="192.168.1.123" />
<param name="port" value="12201" />
<layout class="LoggerLayoutGelf" />
</appender>
<logger name="MyLogger">
<level value="DEBUG" />
<appender_ref ref="MyAMQPAppender" />
<appender_ref ref="MyGraylog2Appender" />
</logger>
</log4php:configuration>