Skip to content
Permalink
Browse files
enhanced logging for demo server usage
  • Loading branch information
mgeiss committed Apr 8, 2017
1 parent 102fb07 commit dbf74721c4d3e525f35917cf5127f20824a5cf2b
Showing 1 changed file with 20 additions and 5 deletions.
@@ -1,6 +1,6 @@
<!--
Copyright 2017 The Mifos Initiative
Copyright 2017 The Mifos Initiative.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -17,11 +17,11 @@
-->
<configuration>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>office.log</file>
<file>logs/office.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<fileNamePattern>office.%d{yyyy-MM-dd}.log</fileNamePattern>
<maxHistory>30</maxHistory>
<totalSizeCap>3GB</totalSizeCap>
<maxHistory>7</maxHistory>
<totalSizeCap>2GB</totalSizeCap>
</rollingPolicy>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
@@ -33,8 +33,23 @@
</encoder>
</appender>

<logger name="com" level="INFO">
<appender-ref ref="STDOUT" />
</logger>

<logger name="org" level="INFO">
<appender-ref ref="STDOUT" />
</logger>

<logger name="io" level="INFO">
<appender-ref ref="STDOUT" />
</logger>

<logger name="net" level="INFO">
<appender-ref ref="STDOUT" />
</logger>

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

0 comments on commit dbf7472

Please sign in to comment.