Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fmt

  • Loading branch information...
commit 9427e20dd1e71d0a5936dbc5fa2ee60028bdfed0 1 parent 2402986
@chocolateboy chocolateboy authored
View
106 src/main/external-resources/logback.headless.xml
@@ -1,60 +1,60 @@
<configuration debug="true">
- <!-- See http://logback.qos.ch/manual/index.html for more information -->
- <!-- on how to configure the Logback logging engine. -->
- <!-- Available levels: ALL < TRACE < DEBUG < INFO < WARN < ERROR < OFF -->
+ <!-- See http://logback.qos.ch/manual/index.html for more information -->
+ <!-- on how to configure the Logback logging engine. -->
+ <!-- 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">
- <!-- only show event WARN and higher on the console. -->
- <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
- <level>WARN</level>
- </filter>
- <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
- <!-- This pattern mimics the original PMS debug.log format -->
- <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern>
- </encoder>
- </appender>
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <!-- only show event WARN and higher on the console. -->
+ <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
+ <level>WARN</level>
+ </filter>
+ <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
+ <!-- This pattern mimics the original PMS debug.log format -->
+ <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern>
+ </encoder>
+ </appender>
- <appender name="debug.log" class="ch.qos.logback.core.FileAppender">
- <!-- only log event DEBUG and higher to the debug.log. -->
- <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
- <level>DEBUG</level>
- </filter>
- <file>${debugLogPath}${file.separator}debug.log</file>
- <append>false</append> <!-- Start new debug.log on each application start -->
- <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
- <!-- This pattern mimics the original PMS debug.log format -->
- <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern>
- </encoder>
- </appender>
+ <appender name="debug.log" class="ch.qos.logback.core.FileAppender">
+ <!-- only log event DEBUG and higher to the debug.log. -->
+ <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
+ <level>DEBUG</level>
+ </filter>
+ <file>${debugLogPath}${file.separator}debug.log</file>
+ <append>false</append> <!-- Start new debug.log on each application start -->
+ <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
+ <!-- This pattern mimics the original PMS debug.log format -->
+ <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern>
+ </encoder>
+ </appender>
- <!-- If unlimited growth of debug.log is not desired use the "debug.log.10MB" -->
- <!-- appender instead of the "debug.log" appender. This appender will -->
- <!-- roll the debug.log file after 10 MBytes and will keep a maximum -->
- <!-- of 5 old and compressed logs. -->
- <appender name="debug.log.10MB" class="ch.qos.logback.core.rolling.RollingFileAppender">
- <!-- only log event DEBUG and higher to the rolling debug.log. -->
- <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
- <level>DEBUG</level>
- </filter>
- <file>${debugLogPath}${file.separator}debug.log</file>
- <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
- <fileNamePattern>${debugLogPath}debug.log.%i.zip</fileNamePattern>
- <minIndex>1</minIndex>
- <maxIndex>5</maxIndex>
- </rollingPolicy>
- <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
- <maxFileSize>10MB</maxFileSize>
- </triggeringPolicy>
- <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
- <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern>
- </encoder>
- </appender>
+ <!-- If unlimited growth of debug.log is not desired use the "debug.log.10MB" -->
+ <!-- appender instead of the "debug.log" appender. This appender will -->
+ <!-- roll the debug.log file after 10 MBytes and will keep a maximum -->
+ <!-- of 5 old and compressed logs. -->
+ <appender name="debug.log.10MB" class="ch.qos.logback.core.rolling.RollingFileAppender">
+ <!-- only log event DEBUG and higher to the rolling debug.log. -->
+ <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
+ <level>DEBUG</level>
+ </filter>
+ <file>${debugLogPath}${file.separator}debug.log</file>
+ <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
+ <fileNamePattern>${debugLogPath}debug.log.%i.zip</fileNamePattern>
+ <minIndex>1</minIndex>
+ <maxIndex>5</maxIndex>
+ </rollingPolicy>
+ <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
+ <maxFileSize>10MB</maxFileSize>
+ </triggeringPolicy>
+ <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
+ <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern>
+ </encoder>
+ </appender>
- <root level="ALL">
- <appender-ref ref="STDOUT" />
- <appender-ref ref="debug.log" />
- <!-- <appender-ref ref="debug.log.10MB" /> -->
- </root>
+ <root level="ALL">
+ <appender-ref ref="STDOUT" />
+ <appender-ref ref="debug.log" />
+ <!-- <appender-ref ref="debug.log.10MB" /> -->
+ </root>
</configuration>
View
4 src/main/external-resources/logback.xml
@@ -70,7 +70,7 @@
<!--
For debugging purposes it can be handy to define custom levels for
specific classes or packages. For example:
-
+
<logger name="net.pms.dlna.DLNAResource" level="ALL" />
<logger name="net.pms.network.RequestHandlerV2" level="ALL" />
<logger name="net.pms.util" level="ALL" />
@@ -80,7 +80,7 @@
<root level="DEBUG">
<appender-ref ref="traces" />
<appender-ref ref="console" />
-
+
<!--
If unlimited growth of debug.log is not desired use the
appender-ref "debug.log.10MB" instead of "debug.log".
Please sign in to comment.
Something went wrong with that request. Please try again.