aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-12-28 17:24:51 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2012-12-28 17:24:51 +0100
commit695c875725b30a1a348f9c8a84e2bdd5ec1f3a82 (patch)
treee5e5049bb88621c3c80938fbda570404d3dc73fc /src/main/resources
parent54ec271b75dad82da9bd4ee2975a22490d66d6dc (diff)
downloadesper-testing-695c875725b30a1a348f9c8a84e2bdd5ec1f3a82.tar.gz
esper-testing-695c875725b30a1a348f9c8a84e2bdd5ec1f3a82.tar.bz2
esper-testing-695c875725b30a1a348f9c8a84e2bdd5ec1f3a82.tar.xz
esper-testing-695c875725b30a1a348f9c8a84e2bdd5ec1f3a82.zip
o Sending logs to to disk.
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/logback.xml19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml
index 1f6becf..c815e52 100644
--- a/src/main/resources/logback.xml
+++ b/src/main/resources/logback.xml
@@ -1,6 +1,20 @@
<configuration debug="false">
+ <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <file>logs/${logging.app}.log</file>
+ <append>true</append>
+ <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
+ <fileNamePattern>logs/${logging.app}-%d.log</fileNamePattern>
+ </rollingPolicy>
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %-30logger{1} - %msg%n</pattern>
+ </encoder>
+ </appender>
+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
+ <level>DEBUG</level>
+ </filter>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %-30logger{1} - %msg%n</pattern>
</encoder>
@@ -14,9 +28,10 @@
<logger name="io.trygvis.esper.testing.util.HttpClient" level="INFO"/>
- <logger name="org.apache.shiro" level="DEBGU"/>
+ <logger name="org.apache.shiro" level="DEBUG"/>
- <root level="INFO">
+ <root>
<appender-ref ref="STDOUT"/>
+ <appender-ref ref="FILE"/>
</root>
</configuration>