Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For unit tests only std out logging, no files
- Loading branch information
Showing
1 changed file
with
4 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,11 @@ | ||
<configuration scan="true" scanPeriod="30 seconds"> | ||
|
||
<!-- refer to http://logback.qos.ch/manual/appenders.html --> | ||
|
||
<property name="logFile" value="logs/sos-importer-feeder" /> | ||
|
||
<!-- | ||
the following assumptions are made by the Adminstrator: | ||
* The name of a file appender is FILE | ||
* The name of a console appender is STDOUT | ||
* The appender named FILE is of type ch.qos.logback.core.rolling.RollingFileAppender | ||
and has a maxHistory and a timeBasedFileNamingAndTriggeringPolicy > maxFileSize | ||
property | ||
* All variables in the file property of the FILE appender are fully resolvable | ||
by the properties defined in this file and the Java system properties. | ||
Additional appenders can be defined freely. | ||
--> | ||
|
||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
<file>${logFile}.log</file> | ||
|
||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> | ||
<fileNamePattern>${logFile}/%d{yyyy-MM-dd}-%i.log</fileNamePattern> | ||
<!-- keep ${config.logger.history.max} days' worth of history --> | ||
<maxHistory>${config.logger.history.max}</maxHistory> | ||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> | ||
<maxFileSize>${config.logger.maxFileSize}</maxFileSize> | ||
</timeBasedFileNamingAndTriggeringPolicy> | ||
</rollingPolicy> | ||
<encoder> | ||
<pattern>%date %level [%thread] [%file:%line] %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<configuration> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{0} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<logger name="org.n52" level="INFO" /> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="FILE" /> | ||
<!-- <appender-ref ref="STDOUT" /> --> | ||
<logger name="org.n52" level="TRACE" /> | ||
<root level="TRACE"> | ||
<appender-ref ref="STDOUT" /> | ||
</root> | ||
</configuration> |