File: logback.xml

package info (click to toggle)
libbtm-java 2.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,568 kB
  • ctags: 7,437
  • sloc: java: 17,848; xml: 158; makefile: 19; sh: 10
file content (44 lines) | stat: -rw-r--r-- 1,344 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<configuration>

    <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
            <level>OFF</level>
        </filter>
        <encoder>
            <pattern>%d [%t] {%X{btm-gtrid}} [%p,%c{1}] %m%n</pattern>
        </encoder>
    </appender>

    <appender name="file" class="ch.qos.logback.core.FileAppender">
        <file>target/tests.log</file>
        <encoder>
            <pattern>%d [%-25.25t] {%-50X{btm-gtrid}} [%-5p] %m%n</pattern>
        </encoder>
    </appender>

    <appender name="sift" class="ch.qos.logback.classic.sift.SiftingAppender">
        <discriminator>
            <key>btm-gtrid</key>
            <defaultValue>N/A</defaultValue>
        </discriminator>
        <sift>
            <appender name="file-${btm-gtrid}" class="ch.qos.logback.core.FileAppender">
                <file>target/tests-${btm-gtrid}.log</file>
                <append>false</append>
                <encoder>
                    <pattern>%d [%-25.25t] [%-5p] %m%n</pattern>
                </encoder>
            </appender>
        </sift>
    </appender>


    <logger name="bitronix.tm" level="DEBUG">
        <appender-ref ref="file"/>
    </logger>

    <root level="INFO">
        <appender-ref ref="console"/>
    </root>

</configuration>