+

Last commit for logback.headless.xml: 3aa8f5b1e4d30c79bdc29d792d1b823de31c8dd7

Initial commit

root [2014-05-05 22:57:02]
Initial commit
  1. <configuration debug="true">
  2. <!--
  3. See http://logback.qos.ch/manual/ for more information on how to
  4. configure the Logback logging engine.
  5. Available levels: ALL < TRACE < DEBUG < INFO < WARN < ERROR < OFF
  6. -->
  7.  
  8. <!--
  9. Let PMS decide the path for the logfile: either the current directory
  10. or (when that is read only) the system temp directory.
  11. -->
  12. <define name="debugLogPath" class="net.pms.logging.DebugLogPathDefiner" />
  13.  
  14. <!-- Appender for the console -->
  15. <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
  16. <!-- Only log INFO and higher -->
  17. <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
  18. <level>INFO</level>
  19. </filter>
  20. <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
  21. <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern>
  22. </encoder>
  23. </appender>
  24.  
  25. <!--
  26. Appender for the debug.log that will keep the file growing in size
  27. until PMS is restarted.
  28. -->
  29. <appender name="debug.log" class="ch.qos.logback.core.FileAppender">
  30. <!-- No threshold filtering, log everything the root logger allows -->
  31. <file>${debugLogPath}${file.separator}debug.log</file>
  32. <append>false</append> <!-- Start new debug.log on each application start -->
  33. <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
  34. <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern>
  35. </encoder>
  36. </appender>
  37.  
  38. <!--
  39. Appender for the debug.log that will roll the debug.log file after 10 MBytes
  40. and will keep a maximum of 5 old and compressed logs.
  41. -->
  42. <appender name="debug.log.10MB" class="ch.qos.logback.core.rolling.RollingFileAppender">
  43. <!-- No threshold filtering, log everything the root logger allows -->
  44. <file>${debugLogPath}${file.separator}debug.log</file>
  45. <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
  46. <fileNamePattern>${debugLogPath}debug.log.%i.zip</fileNamePattern>
  47. <minIndex>1</minIndex>
  48. <maxIndex>5</maxIndex>
  49. </rollingPolicy>
  50. <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
  51. <maxFileSize>10MB</maxFileSize>
  52. </triggeringPolicy>
  53. <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
  54. <pattern>%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %msg%n</pattern>
  55. </encoder>
  56. </appender>
  57.  
  58. <!--
  59. For debugging purposes it can be handy to define custom levels for
  60. specific classes or packages. For example:
  61.  
  62. <logger name="net.pms.dlna.DLNAResource" level="ALL" />
  63. <logger name="net.pms.network.RequestHandlerV2" level="ALL" />
  64. <logger name="net.pms.util" level="ALL" />
  65. -->
  66.  
  67. <!-- silence noise from external libraries -->
  68. <logger name="org.apache" level="WARN" />
  69. <logger name="httpclient.wire" level="WARN" />
  70.  
  71. <!-- Root logger defines the minimum log level for all loggers -->
  72. <root level="DEBUG">
  73. <appender-ref ref="console" />
  74.  
  75. <!--
  76. If unlimited growth of debug.log is not desired use the
  77. appender-ref "debug.log.10MB" instead of "debug.log".
  78. -->
  79. <appender-ref ref="debug.log" />
  80. <!-- <appender-ref ref="debug.log.10MB" /> -->
  81. </root>
  82. </configuration>