PageRenderTime 22ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/samples/scalate-sample-scuery/src/main/resources/logback.xml

http://github.com/scalate/scalate
XML | 50 lines | 19 code | 8 blank | 23 comment | 0 complexity | 99a1462f5c414db46dae1bbd034d969a 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<logger name="org.fusesource.scalate" level="DEBUG" />
44
45  <root level="info">
46    <appender-ref ref="FILE" />
47    <appender-ref ref="STDOUT" />
48  </root>
49
50</configuration>