aboutsummaryrefslogtreecommitdiff
path: root/juick-server-core/src/main/resources/logback.xml.example
blob: 05a3cfdfe4a44a842981cea9a6fb87420246aac6 (plain) (blame)
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
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="true">
    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <!-- encoders are assigned the type
             ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
        <encoder>
            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
        </encoder>
    </appender>

    <!-- log SQL (pre-execution) plus exceptions caused by SQL -->
    <!-- <logger name="jdbc.sqlonly" level="debug"/>-->

    <!-- log SQL with timing information, post execution -->
    <!-- <logger name="jdbc.sqltiming" level="debug"/> -->

    <!-- only use the two logs below to trace ALL JDBC information, NOTE: This can be very voluminous! -->

    <!-- log all jdbc calls except ResultSet calls -->
    <!-- <logger name="jdbc.audit" level="debug"/> -->

    <!-- log the jdbc ResultSet calls -->
    <!-- <logger name="jdbc.resultset" level="debug"/> -->

    <!-- log connection open/close events and dump of all open connection numbers -->
    <!-- <logger name="jdbc.connection" level="debug"/> -->

    <!-- this log is for internal debugging of log4jdbc, itself -->
    <!-- debug logging for log4jdbc itself -->
    <!-- <logger name="log4jdbc.debug" level="debug"/> -->

    <root level="info">
        <appender-ref ref="STDOUT" />
    </root>
</configuration>