[maven-release-plugin] prepare release v1.0.0-rc1
[jibu.git] / jibu-core / src / main / resources / logback.xml
blob0c8785bf3aa21998ef8e9b5493740a35fae546b4
1 <configuration>
2   <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
3     <file>jibu.log</file>
4     <!-- encoders are assigned by default the type
5          ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
6     <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
7       <!-- daily rollover -->
8       <fileNamePattern>jibu.%d{yyyy-MM-dd}.log</fileNamePattern>
10       <!-- keep 30 days' worth of history -->
11       <maxHistory>30</maxHistory>
12     </rollingPolicy>
14     <encoder>
15       <pattern>%date %-5level [%thread] %logger{36} - %msg%n</pattern>
16     </encoder>
17   </appender>
19   <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
20     <encoder>
21       <pattern>%d{HH:mm:ss.SSS} %-5level [%thread] %logger{16} [%line] - %msg%n</pattern>
22     </encoder>
23   </appender>
25   <logger name="org.gaixie.jibu" level="DEBUG"/>
27   <root level="WARN">
28     <appender-ref ref="FILE" />
29     <appender-ref ref="STDOUT" /> 
30   </root>
31 </configuration>