summaryrefslogtreecommitdiff
path: root/src/installer/resources/logging.xml
blob: 5a6fc6e90e2024a5d1f41af35a6e6dcdd9ab76e1 (plain)
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
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8"?>

<configuration>

    <!-- 
        Logging appenders define where and how logging messages are logged.
     -->
    <appender name="DS_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <File>$DS_HOME$/logs/discoveryService.log</File>
        <ImmediateFlush>true</ImmediateFlush>

        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <FileNamePattern>$DS_HOME$/etc/DiscoveryService/logs/discovery-%d{yyyy-MM-dd}.log</FileNamePattern>
        </rollingPolicy>

        <layout class="ch.qos.logback.classic.PatternLayout">
            <Pattern>%date{HH:mm:ss.SSS} %level [%logger] %msg%n%ex{full}%n</Pattern>
        </layout>
    </appender>

    <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <ImmediateFlush>true</ImmediateFlush>
        <layout class="ch.qos.logback.classic.PatternLayout">
            <Pattern>%date{HH:mm:ss.SSS} %level [%logger] %msg%n%ex{full}%n</Pattern>
        </layout>
    </appender>
    
    <!--
        Loggers define indicate which packages/categories are logged, at which level, and to which appender.
        Levels: ALL, ERROR, WARN, INFO, DEBUG, OFF
    -->

    <!-- Logs IdP, but not OpenSAML, messages -->
    <logger name="edu.internet2.middleware.shibboleth">
        <level value="WARN" />
        <!-- Appender, DS_LOG, is inherited from the root logger -->
    </logger>

    <!-- Logs OpenSAML, but not IdP, messages -->
    <logger name="org.opensaml">
        <level value="INFO" />
        <!-- Appender, DS_LOG, is inherited from the root logger -->
    </logger>

    <root>
        <level value="WARN" />
        <appender-ref ref="DS_LOG" />
    </root>

</configuration>