/samples/scalate-bookstore/src/main/resources/logback.xml

http://github.com/scalate/scalate · XML · 48 lines · 18 code · 7 blank · 23 comment · 0 complexity · 91fed7144d09828227d6861f18e764de MD5 · raw file

  1. <!--
  2. Copyright (C) 2009-2011 the original author or authors.
  3. See the notice.md file distributed with this work for additional
  4. information regarding copyright ownership.
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <configuration scan="true" debug="false">
  16. <!-- TODO in production mode disable the scan -->
  17. <appender name="FILE" class="ch.qos.logback.core.FileAppender">
  18. <File>target/application.log</File>
  19. <Append>true</Append>
  20. <encoder>
  21. <Pattern>%-4relative [%thread] %-5level %logger{40} - %msg%n</Pattern>
  22. </encoder>
  23. </appender>
  24. <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
  25. <encoder>
  26. <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern>
  27. </encoder>
  28. </appender>
  29. <!--
  30. <logger name="org.fusesource.scalate" level="DEBUG" />
  31. -->
  32. <root level="info">
  33. <appender-ref ref="FILE" />
  34. <appender-ref ref="STDOUT" />
  35. </root>
  36. </configuration>