3ad0c61d4f66ffb8763354e65bc2d196d88929df
[controller.git] / opendaylight / distribution / opendaylight / src / main / resources / configuration / logback.xml
1  <configuration scan="true">
2
3   <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4     <encoder>
5       <pattern>%date{"yyyy-MM-dd HH:mm:ss.SSS z"} [%thread] %-5level %logger{36} - %msg%n</pattern>
6     </encoder>
7   </appender>
8   <appender name="opendaylight.log" class="ch.qos.logback.core.rolling.RollingFileAppender">
9     <file>logs/opendaylight.log</file>
10
11     <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
12       <fileNamePattern>logs/opendaylight.%d.log.zip</fileNamePattern>
13       <maxHistory>1</maxHistory>
14     </rollingPolicy>
15
16     <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
17       <maxFileSize>10MB</maxFileSize>
18     </triggeringPolicy>
19
20     <encoder>
21       <pattern>%date{"yyyy-MM-dd HH:mm:ss.SSS z"} [%thread] %-5level %logger{35} - %msg%n</pattern>
22     </encoder>
23   </appender>
24   <appender name="audit-file" class="ch.qos.logback.core.FileAppender">
25         <file>logs/audit.log</file>
26         <append>true</append>
27         <encoder>
28             <pattern>%date{"yyyy-MM-dd HH:mm:ss.SSS z"} %msg %n</pattern>
29         </encoder>
30   </appender>
31   <root level="error">
32     <appender-ref ref="STDOUT" />
33     <appender-ref ref="opendaylight.log" />
34   </root>
35
36   <!--  Base log level  -->
37   <logger name="org.opendaylight" level="INFO"/>
38
39   <logger name="org.opendaylight.yangtools.yang.parser.util.ModuleDependencySort" level="ERROR"/>
40
41   <!-- Controller log level -->
42   <logger name="org.opendaylight.controller" level="INFO"/>
43
44   <!-- OSGi logging bridge -->
45   <logger name="org.opendaylight.controller.logging.bridge" level="WARN"/>
46
47   <!-- Netty -->
48   <logger name="io.netty" level="WARN"/>
49
50   <!-- Openflow Protocol Plugin -->
51   <logger name="org.opendaylight.controller.protocol_plugin.openflow" level="INFO"/>
52   <logger name="org.opendaylight.controller.protocol_plugin.openflow.internal.DiscoveryService" level="INFO"/>
53   <logger name="org.opendaylight.controller.protocol_plugin.openflow.internal.InventoryService" level="INFO"/>
54   <logger name="org.opendaylight.controller.protocol_plugin.openflow.internal.InventoryServiceShim" level="INFO"/>
55   <logger name="org.opendaylight.controller.protocol_plugin.openflow.internal.TopologyServices" level="INFO"/>
56   <logger name="org.opendaylight.controller.protocol_plugin.openflow.internal.TopologyServiceShim" level="INFO"/>
57   <logger name="org.opendaylight.controller.protocol_plugin.openflow.core.internal.Controller" level="INFO"/>
58   <logger name="org.opendaylight.controller.protocol_plugin.openflow.core.internal.SwitchHandler" level="INFO"/>
59   <logger name="org.opendaylight.controller.protocol_plugin.openflow.core.internal.SwitchIOSecureService" level="INFO"/>
60   <!-- SAL  -->
61   <logger name="org.opendaylight.controller.sal" level="INFO"/>
62   <logger name="org.opendaylight.controller.sal.implementation" level="INFO"/>
63   <logger name="org.opendaylight.controller.sal.implementation.internal.Inventory" level="INFO"/>
64   <logger name="org.opendaylight.controller.sal.implementation.internal.Topology" level="INFO"/>
65      <!-- zeromq router and zeromq routing table -->
66   <logger name="org.opendaylight.controller.sal.connector.remoterpc" level="INFO" />
67   <!-- Functional Modules -->
68   <logger name="org.opendaylight.controller.arphandler" level="INFO"/>
69   <logger name="org.opendaylight.controller.hosttracker" level="INFO"/>
70   <logger name="org.opendaylight.controller.routing" level="INFO"/>
71   <logger name="org.opendaylight.controller.forwardingrulesmanager" level="INFO"/>
72   <logger name="org.opendaylight.controller.forwarding.ipswitch" level="INFO"/>
73   <logger name="org.opendaylight.controller.switchmanager" level="INFO"/>
74   <logger name="org.opendaylight.controller.topologymanager" level="INFO"/>
75   <logger name="org.opendaylight.controller.usermanager" level="INFO"/>
76   <!-- Web modules -->
77   <logger name="org.opendaylight.controller.web" level="INFO"/>
78   <!-- additivity=false ensures analytics data only goes to the analytics log -->
79   <logger name="audit" level="INFO" additivity="false">
80        <appender-ref ref="audit-file"/>
81   </logger>
82 </configuration>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.