forked from ps3mediaserver/ps3mediaserver
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2402986
commit 9427e20
Showing
2 changed files
with
55 additions
and
55 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,60 +1,60 @@ | |||
<configuration debug="true"> | <configuration debug="true"> | ||
<!-- See http://logback.qos.ch/manual/index.html for more information --> | <!-- See http://logback.qos.ch/manual/index.html for more information --> | ||
<!-- on how to configure the Logback logging engine. --> | <!-- on how to configure the Logback logging engine. --> | ||
<!-- Available levels: ALL < TRACE < DEBUG < INFO < WARN < ERROR < OFF --> | <!-- Available levels: ALL < TRACE < DEBUG < INFO < WARN < ERROR < OFF --> | ||
|
|
||
<define name="debugLogPath" class="net.pms.logging.DebugLogPathDefiner" /> | <define name="debugLogPath" class="net.pms.logging.DebugLogPathDefiner" /> | ||
|
|
||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<!-- only show event WARN and higher on the console. --> | <!-- only show event WARN and higher on the console. --> | ||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
<level>WARN</level> | <level>WARN</level> | ||
</filter> | </filter> | ||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> | <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> | ||
<!-- This pattern mimics the original PMS debug.log format --> | <!-- This pattern mimics the original PMS debug.log format --> | ||
<pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern> | <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern> | ||
</encoder> | </encoder> | ||
</appender> | </appender> | ||
|
|
||
<appender name="debug.log" class="ch.qos.logback.core.FileAppender"> | <appender name="debug.log" class="ch.qos.logback.core.FileAppender"> | ||
<!-- only log event DEBUG and higher to the debug.log. --> | <!-- only log event DEBUG and higher to the debug.log. --> | ||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
<level>DEBUG</level> | <level>DEBUG</level> | ||
</filter> | </filter> | ||
<file>${debugLogPath}${file.separator}debug.log</file> | <file>${debugLogPath}${file.separator}debug.log</file> | ||
<append>false</append> <!-- Start new debug.log on each application start --> | <append>false</append> <!-- Start new debug.log on each application start --> | ||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> | <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> | ||
<!-- This pattern mimics the original PMS debug.log format --> | <!-- This pattern mimics the original PMS debug.log format --> | ||
<pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern> | <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern> | ||
</encoder> | </encoder> | ||
</appender> | </appender> | ||
|
|
||
<!-- If unlimited growth of debug.log is not desired use the "debug.log.10MB" --> | <!-- If unlimited growth of debug.log is not desired use the "debug.log.10MB" --> | ||
<!-- appender instead of the "debug.log" appender. This appender will --> | <!-- appender instead of the "debug.log" appender. This appender will --> | ||
<!-- roll the debug.log file after 10 MBytes and will keep a maximum --> | <!-- roll the debug.log file after 10 MBytes and will keep a maximum --> | ||
<!-- of 5 old and compressed logs. --> | <!-- of 5 old and compressed logs. --> | ||
<appender name="debug.log.10MB" class="ch.qos.logback.core.rolling.RollingFileAppender"> | <appender name="debug.log.10MB" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
<!-- only log event DEBUG and higher to the rolling debug.log. --> | <!-- only log event DEBUG and higher to the rolling debug.log. --> | ||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
<level>DEBUG</level> | <level>DEBUG</level> | ||
</filter> | </filter> | ||
<file>${debugLogPath}${file.separator}debug.log</file> | <file>${debugLogPath}${file.separator}debug.log</file> | ||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> | <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> | ||
<fileNamePattern>${debugLogPath}debug.log.%i.zip</fileNamePattern> | <fileNamePattern>${debugLogPath}debug.log.%i.zip</fileNamePattern> | ||
<minIndex>1</minIndex> | <minIndex>1</minIndex> | ||
<maxIndex>5</maxIndex> | <maxIndex>5</maxIndex> | ||
</rollingPolicy> | </rollingPolicy> | ||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> | <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> | ||
<maxFileSize>10MB</maxFileSize> | <maxFileSize>10MB</maxFileSize> | ||
</triggeringPolicy> | </triggeringPolicy> | ||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> | <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> | ||
<pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern> | <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern> | ||
</encoder> | </encoder> | ||
</appender> | </appender> | ||
|
|
||
<root level="ALL"> | <root level="ALL"> | ||
<appender-ref ref="STDOUT" /> | <appender-ref ref="STDOUT" /> | ||
<appender-ref ref="debug.log" /> | <appender-ref ref="debug.log" /> | ||
<!-- <appender-ref ref="debug.log.10MB" /> --> | <!-- <appender-ref ref="debug.log.10MB" /> --> | ||
</root> | </root> | ||
</configuration> | </configuration> |
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