summaryrefslogtreecommitdiff
path: root/src/installer/resources/logging.xml
diff options
context:
space:
mode:
authorLeif Johansson <leifj@klapautius.mnt.se>2009-07-28 10:34:52 +0200
committerLeif Johansson <leifj@klapautius.mnt.se>2009-07-28 10:34:52 +0200
commit0a90384a9c7d840e88d9636271e8393a514647a0 (patch)
tree007540e79ec2a2e0e81bd0bd21e6eef9fc8bb205 /src/installer/resources/logging.xml
Import shibboleth ds 1.1.0v1.1.0upstreamds.swamid.se
Diffstat (limited to 'src/installer/resources/logging.xml')
-rw-r--r--src/installer/resources/logging.xml50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/installer/resources/logging.xml b/src/installer/resources/logging.xml
new file mode 100644
index 0000000..77fefd6
--- /dev/null
+++ b/src/installer/resources/logging.xml
@@ -0,0 +1,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$/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 DS, 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 DS, 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>