logback.1.4.0.20130601-0317.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <configuration scan="true">
  2. <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
  3. <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
  4. <pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
  5. </encoder>
  6. <filter class="org.eclipse.m2e.logback.appender.ConsoleAppenderFilter"/>
  7. </appender>
  8. <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
  9. <File>${org.eclipse.m2e.log.dir}/0.log</File>
  10. <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
  11. <FileNamePattern>${org.eclipse.m2e.log.dir}/%i.log</FileNamePattern>
  12. <MinIndex>1</MinIndex>
  13. <MaxIndex>10</MaxIndex>
  14. </rollingPolicy>
  15. <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
  16. <MaxFileSize>100MB</MaxFileSize>
  17. </triggeringPolicy>
  18. <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
  19. <pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
  20. </encoder>
  21. </appender>
  22. <appender name="EclipseLog" class="org.eclipse.m2e.logback.appender.EclipseLogAppender">
  23. <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
  24. <level>WARN</level>
  25. </filter>
  26. </appender>
  27. <appender name="MavenConsoleLog" class="org.eclipse.m2e.logback.appender.MavenConsoleAppender">
  28. </appender>
  29. <root level="INFO">
  30. <appender-ref ref="FILE" />
  31. <appender-ref ref="STDOUT" />
  32. <appender-ref ref="EclipseLog" />
  33. <appender-ref ref="MavenConsoleLog" />
  34. </root>
  35. <logger name="com.ning.http.client" level="INFO" />
  36. </configuration>