/
log4j.xml
153 lines (128 loc) · 5.42 KB
/
log4j.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to JumpMind Inc under one or more contributor
license agreements. See the NOTICE file distributed
with this work for additional information regarding
copyright ownership. JumpMind Inc licenses this file
to you under the GNU General Public License, version 3.0 (GPLv3)
(the "License"); you may not use this file except in compliance
with the License.
You should have received a copy of the GNU General Public License,
version 3.0 (GPLv3) along with this library; if not, see
<http://www.gnu.org/licenses/>.
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<appender name="ROLLING" class="org.jumpmind.util.SymRollingFileAppender">
<param name="File" value="${log4j.sym.home}/logs/symmetric.log" />
<param name="MaxFileSize" value="10MB" />
<param name="MaxBackupIndex" value="3" />
<param name="Append" value="true" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %p [%X{engineName}] [%c{1}] [%t] %m%n" />
</layout>
</appender>
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.err" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%X{engineName}] - %c{1} - %m%n" />
</layout>
</appender>
<appender name="BUFFERED" class="org.jumpmind.util.BufferedLogAppender"/>
<!-- Uncomment to send errors over email. (1/2) -->
<!--
<appender name="EMAIL" class="org.apache.log4j.net.SMTPAppender">
<param name="SMTPHost" value="mymailhost" />
<param name="SMTPUsername" value="" />
<param name="SMTPPassword" value="" />
<param name="From" value="user@nowhere" />
<param name="To" value="user@nowhere" />
<param name="Subject" value="Error from SymmetricDS" />
<param name="BufferSize" value="10" />
<param name="LocationInfo" value="true" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%t %m%n"/>
</layout>
<filter class="org.apache.log4j.varia.LevelRangeFilter">
<param name="LevelMin" value="error" />
<param name="LevelMax" value="fatal" />
</filter>
</appender>
-->
<category name="org">
<priority value="WARN" />
</category>
<category name="org.jumpmind">
<priority value="INFO" />
</category>
<category name="com.mangofactory.swagger.filters.AnnotatedParameterFilter">
<priority value="ERROR" />
</category>
<!-- To print out SQL
<category name="org.jumpmind.db.sql">
<priority value="DEBUG" />
</category>
-->
<!-- Disable the not found override properties file warnings to avoid confusion -->
<category name="org.jumpmind.symmetric.util.PropertiesFactoryBean">
<priority value="ERROR" />
</category>
<category name="org.jumpmind.symmetric.service.impl.ParameterService">
<priority value="ERROR" />
</category>
<category name="org.jumpmind.symmetric.db.SqlScript">
<priority value="ERROR" />
</category>
<category name="org.springframework">
<priority value="ERROR" />
</category>
<category name="com.vaadin.server.DefaultDeploymentConfiguration">
<priority value="ERROR" />
</category>
<!-- Uncomment to see CSV protocol from sending batches -->
<!--
<category name="org.jumpmind.symmetric.io.data.writer.ProtocolDataWriter">
<priority value="DEBUG"/>
</category>
-->
<!-- Uncomment to see SQL statements from loading batches -->
<!--
<category name="org.jumpmind.symmetric.io.data.writer.DefaultDatabaseWriter">
<priority value="DEBUG" />
</category>
-->
<!-- Enable this to see debug messages in JMS publishing extensions -->
<!--
<category name="org.jumpmind.symmetric.integrate">
<priority value="DEBUG" />
</category>
-->
<!-- Enable this to see debug messages for why SymmetricDS tables are being altered -->
<!--
<category name="org.jumpmind.db.alter">
<priority value="DEBUG" />
</category>
-->
<!-- In order to see http headers enable this, and also edit logging.properties
<category name="sun.net.www.protocol.http.HttpURLConnection">
<priority value="ALL" />
</category>
-->
<!-- Change the "CONSOLE" to "ROLLING" to log to a file instead -->
<root>
<priority value="INFO" />
<appender-ref ref="ROLLING" />
<appender-ref ref="CONSOLE" />
<appender-ref ref="BUFFERED" />
<!-- Uncomment to send errors over email. (2/2) -->
<!--
<appender-ref ref="EMAIL" />
-->
</root>
</log4j:configuration>