-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy pathlogback.xml
More file actions
32 lines (26 loc) · 1.13 KB
/
logback.xml
File metadata and controls
32 lines (26 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true" scanPeriod="30 seconds">
<!-- To enable JMX Management -->
<jmxConfigurator/>
<appender name="file" class="ch.qos.logback.core.FileAppender">
<file>${TOPJAVA_ROOT}/log/topjava.log</file>
<encoder>
<charset>UTF-8</charset>
<pattern>%date %-5level %logger{50}.%M:%L - %msg%n</pattern>
</encoder>
</appender>
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<charset>UTF-8</charset>
<pattern>%d{HH:mm:ss.SSS} %highlight(%-5level) %cyan(%class{50}.%M:%L) - %msg%n</pattern>
</encoder>
</appender>
<logger name="ru.javawebinar.topjava" level="debug"/>
<!--<logger name="org.springframework.web.servlet" level="debug"/>-->
<logger name="org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver" level="debug"/>
<logger name="org.springframework.security" level="debug"/>
<root level="info">
<appender-ref ref="file"/>
<appender-ref ref="console"/>
</root>
</configuration>