File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 148
148
<version >1.9.13</version >
149
149
</dependency >
150
150
151
+ <dependency >
152
+ <groupId >log4j</groupId >
153
+ <artifactId >log4j</artifactId >
154
+ <version >1.2.12</version >
155
+ </dependency >
156
+
151
157
<dependency >
152
158
<groupId >junit</groupId >
153
159
<artifactId >junit</artifactId >
Original file line number Diff line number Diff line change
1
+ # ## set log levels - for more verbose logging change 'info' to 'debug' ###
2
+ log4j.rootLogger =info, stdout
3
+
4
+ # ## direct log messages to stdout ###
5
+ log4j.appender.stdout =org.apache.log4j.ConsoleAppender
6
+ log4j.appender.stdout.Target =System.out
7
+ log4j.appender.stdout.layout =org.apache.log4j.PatternLayout
8
+ log4j.appender.stdout.layout.ConversionPattern =%d{yyyy-MM-dd HH:mm:ss,SSS} %5p %c{1}:%L - %m%n
9
+
10
+
11
+
Original file line number Diff line number Diff line change 16
16
<url-pattern >/</url-pattern >
17
17
</servlet-mapping >
18
18
19
+ <context-param >
20
+ <param-name >log4jConfiguration</param-name >
21
+ <param-value >classpath:log4j.properties</param-value >
22
+ </context-param >
23
+ <listener >
24
+ <listener-class >org.springframework.web.util.Log4jConfigListener</listener-class >
25
+ </listener >
26
+
19
27
<listener >
20
28
<listener-class >org.springframework.web.context.ContextLoaderListener</listener-class >
21
29
</listener >
27
35
classpath:service-context.xml
28
36
</param-value >
29
37
</context-param >
38
+
39
+
30
40
</web-app >
You can’t perform that action at this time.
0 commit comments