PageRenderTime 51ms CodeModel.GetById 45ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

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