configure logback.xml file
[netconf.git] / netconf / tools / netconf-testtool / src / main / resources / logback.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3   ~ Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
4   ~
5   ~ This program and the accompanying materials are made available under the
6   ~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
7   ~ and is available at http://www.eclipse.org/legal/epl-v10.html
8   -->
9
10 <configuration>
11     <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
12         <encoder>
13             <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
14         </encoder>
15     </appender>
16
17     <root level="INFO">
18         <appender-ref ref="STDOUT"/>
19     </root>
20
21     <if condition='property("log_file_name").contains("scale-util.log")'>
22         <then>
23             <appender name="RESULTS-FILE" class="ch.qos.logback.core.FileAppender">
24                 <file>${log_file_name}</file>
25                 <append>true</append>
26                 <encoder>
27                     <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
28                 </encoder>
29             </appender>
30
31             <logger name="results" level="DEBUG" additivity="false">
32                 <appender-ref ref="RESULTS-FILE"/>
33             </logger>
34         </then>
35     </if>
36
37     <logger name="com.ning.http.client" level="WARN"/>
38 </configuration>