55 lines
2.2 KiB
XML
55 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
|
|
This file is part of Rubanetra.
|
|
Copyright (C) 2013,2014 Stefan Swerk (stefan_rubanetra@swerk.priv.at)
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
|
<configuration>
|
|
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
|
<Target>System.err</Target>
|
|
<encoder>
|
|
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p - %m%n</pattern>
|
|
</encoder>
|
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
|
<level>info</level>
|
|
</filter>
|
|
</appender>
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
|
|
<Append>true</Append>
|
|
<File>./logs/rubanetra.log</File>
|
|
<encoder>
|
|
<pattern>%date %level [%thread] [%file:%line] - %msg%n</pattern>
|
|
</encoder>
|
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
|
<level>info</level>
|
|
</filter>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
|
<maxIndex>5</maxIndex>
|
|
<FileNamePattern>./logs/rubanetra.log.%i</FileNamePattern>
|
|
</rollingPolicy>
|
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
|
<MaxFileSize>10MB</MaxFileSize>
|
|
</triggeringPolicy>
|
|
</appender>
|
|
<root level="info">
|
|
<appender-ref ref="CONSOLE"/>
|
|
<!-- uncomment the following line to enable file based logging -->
|
|
<!--<appender-ref ref="FILE"/>-->
|
|
</root>
|
|
</configuration>
|