質問編集履歴
2
コード内容の変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,17 +54,17 @@
|
|
54
54
|
|
55
55
|
<param name="threshold" value="debug"/>
|
56
56
|
|
57
|
-
<param name="File" value="${catalina.home}/logs/
|
57
|
+
<param name="File" value="${catalina.home}/logs/trans/update.log" />
|
58
58
|
|
59
59
|
<param name="Append" value="true" />
|
60
60
|
|
61
|
-
<layout class="jp.co.xxx.
|
61
|
+
<layout class="jp.co.xxx.trans.log.UserKeyAndPatternLayout">
|
62
|
-
|
62
|
+
|
63
|
-
<param name="ConversionPattern" value="%-5p\t%d\t[%t]\t%m%n" />
|
63
|
+
<param name="ConversionPattern" value="%-5p\t%d\t[%t]\t%m%n" />
|
64
|
-
|
64
|
+
|
65
|
-
</layout>
|
65
|
+
</layout>
|
66
|
-
|
66
|
+
|
67
|
-
<filter class="jp.co.xxx.
|
67
|
+
<filter class="jp.co.xxx.trans.log.RegexMatchFilter" >
|
68
68
|
|
69
69
|
<param name="regex" value="^(insert|update|delete).*" />
|
70
70
|
|
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
<param name="threshold" value="debug"/>
|
78
78
|
|
79
|
-
<param name="File" value="${catalina.home}/logs/
|
79
|
+
<param name="File" value="${catalina.home}/logs/trans/trace.log" />
|
80
80
|
|
81
81
|
<param name="Append" value="true" />
|
82
82
|
|
@@ -92,7 +92,7 @@
|
|
92
92
|
|
93
93
|
<param name="threshold" value="debug"/>
|
94
94
|
|
95
|
-
<param name="File" value="${catalina.home}/logs/
|
95
|
+
<param name="File" value="${catalina.home}/logs/trans/request.log" />
|
96
96
|
|
97
97
|
<param name="Append" value="true" />
|
98
98
|
|
@@ -108,7 +108,7 @@
|
|
108
108
|
|
109
109
|
<param name="threshold" value="info"/>
|
110
110
|
|
111
|
-
<param name="File" value="${catalina.home}/logs/
|
111
|
+
<param name="File" value="${catalina.home}/logs/trans/system.log" />
|
112
112
|
|
113
113
|
<param name="Append" value="true" />
|
114
114
|
|
@@ -124,23 +124,23 @@
|
|
124
124
|
|
125
125
|
<param name="threshold" value="warn"/>
|
126
126
|
|
127
|
-
<param name="File" value="${catalina.home}/logs/
|
127
|
+
<param name="File" value="${catalina.home}/logs/trans/warn.log" />
|
128
|
-
|
128
|
+
|
129
|
-
<param name="Append" value="true" />
|
129
|
+
<param name="Append" value="true" />
|
130
|
-
|
130
|
+
|
131
|
-
<layout class="org.apache.log4j.PatternLayout">
|
131
|
+
<layout class="org.apache.log4j.PatternLayout">
|
132
|
-
|
132
|
+
|
133
|
-
<param name="ConversionPattern" value="%-5p\t%d\t[%t]\t%m%n" />
|
133
|
+
<param name="ConversionPattern" value="%-5p\t%d\t[%t]\t%m%n" />
|
134
|
-
|
134
|
+
|
135
|
-
</layout>
|
135
|
+
</layout>
|
136
|
-
|
136
|
+
|
137
|
-
</appender>
|
137
|
+
</appender>
|
138
|
-
|
138
|
+
|
139
|
-
<appender name="errorAppender" class="jp.co.xxx.
|
139
|
+
<appender name="errorAppender" class="jp.co.xxx.trans.log.ErrorsFileAppender">
|
140
140
|
|
141
141
|
<param name="threshold" value="error"/>
|
142
142
|
|
143
|
-
<param name="File" value="${catalina.home}/logs/
|
143
|
+
<param name="File" value="${catalina.home}/logs/trans/errors/error.log" />
|
144
144
|
|
145
145
|
<param name="Append" value="true" />
|
146
146
|
|
@@ -166,7 +166,7 @@
|
|
166
166
|
|
167
167
|
</logger>
|
168
168
|
|
169
|
-
<logger name="jp.co.xxx.
|
169
|
+
<logger name="jp.co.xxx.trans">
|
170
170
|
|
171
171
|
<appender-ref ref="trace"/>
|
172
172
|
|
1
LOGファイルの文字コードについて追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,6 +18,8 @@
|
|
18
18
|
|
19
19
|
本番環境では日本語に文字化けが発生し、「?????????」のように表示されてしまう
|
20
20
|
|
21
|
+
出力されていたLOGファイルの文字コードは「SJIS」となっていました。
|
22
|
+
|
21
23
|
|
22
24
|
|
23
25
|
|