-
Notifications
You must be signed in to change notification settings - Fork 188
/
logback.xml
81 lines (74 loc) · 3.51 KB
/
logback.xml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2010-2017 Evolveum and contributors
~
~ This work is dual-licensed under the Apache License 2.0
~ and European Union Public License. See LICENSE file for details.
-->
<configuration>
<if condition='"true".equals(property("midpoint.logging.alt.enabled"))'>
<then>
<include resource="logback-alt.xml" />
</then>
</if>
<appender name="MIDPOINT_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
<!-- See http://logback.qos.ch/manual/appenders.html#RollingFileAppender -->
<!-- and http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy -->
<!-- for further documentation -->
<Append>true</Append>
<File>${midpoint.home}/log/midpoint.log</File>
<encoder>
<pattern>%date [%X{subsystem}] [%thread] %level \(%logger\): %msg%n</pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${midpoint.home}/log/midpoint-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxFileSize>100MB</maxFileSize>
<maxHistory>10</maxHistory>
<totalSizeCap>1GB</totalSizeCap>
<cleanHistoryOnStart>true</cleanHistoryOnStart>
</rollingPolicy>
</appender>
<!-- Appender for profiling purposes -->
<appender name="MIDPOINT_PROFILE_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
<!-- See http://logback.qos.ch/manual/appenders.html#RollingFileAppender -->
<!-- and http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy -->
<!-- for further documentation -->
<Append>true</Append>
<File>${midpoint.home}/log/midpoint-profile.log</File>
<encoder>
<pattern>%date %level: %msg%n</pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${midpoint.home}/log/midpoint-profile-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxFileSize>100MB</maxFileSize>
<maxHistory>10</maxHistory>
<totalSizeCap>1GB</totalSizeCap>
<cleanHistoryOnStart>true</cleanHistoryOnStart>
</rollingPolicy>
</appender>
<!-- Appender for profiling purposes -->
<logger name="org.springframework.boot.SpringApplication" level="INFO"/>
<logger name="ro.isdc.wro.extensions.processor.css.Less4jProcessor" level="ERROR"/>
<logger name="org.springframework.security.web.DefaultSecurityFilterChain" level="OFF"/>
<logger name="org.hibernate.engine.jdbc.spi.SqlExceptionHelper" level="OFF"/>
<logger name="org.hibernate.engine.jdbc.batch.internal.BatchingBatch" level="OFF"/>
<logger name="org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl" level="WARN"/>
<logger name="PROFILING" level="INFO"/>
<logger name="com.evolveum.midpoint" level="INFO" />
<logger name="com.evolveum.midpoint.web.util.MidPointProfilingServletFilter" level="TRACE">
<appender-ref ref="MIDPOINT_PROFILE_LOG"/>
</logger>
<if condition='"true".equals(property("midpoint.logging.alt.enabled"))'>
<then>
<root level="WARN">
<appender-ref ref="MIDPOINT_LOG"/>
<appender-ref ref="ALT_LOG"/>
</root>
</then>
<else>
<root level="WARN">
<appender-ref ref="MIDPOINT_LOG"/>
</root>
</else>
</if>
</configuration>