ItEr29S03ContornaItEr28S03: Activates logging in embedded jetty.
The configuration uses log4 and INFO loggin level.
This commit is contained in:
parent
778409fbe4
commit
e6e1b040de
2 changed files with 17 additions and 0 deletions
7
pom.xml
7
pom.xml
|
|
@ -471,6 +471,7 @@
|
|||
<directory>../src/main/jetty</directory>
|
||||
<includes>
|
||||
<include>jetty-env.xml</include>
|
||||
<include>log4j.properties</include>
|
||||
</includes>
|
||||
<targetPath>../jetty</targetPath>
|
||||
<filtering>true</filtering>
|
||||
|
|
@ -585,6 +586,12 @@
|
|||
</connector>
|
||||
</connectors>
|
||||
-->
|
||||
<systemProperties>
|
||||
<systemProperty>
|
||||
<name>log4j.configuration</name>
|
||||
<value>file:./target/jetty/log4j.properties</value>
|
||||
</systemProperty>
|
||||
</systemProperties>
|
||||
</configuration>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
|||
10
src/main/jetty/log4j.properties
Normal file
10
src/main/jetty/log4j.properties
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
et root logger level to DEBUG and its only appender to A1.
|
||||
log4j.rootLogger=INFO, A1
|
||||
|
||||
# A1 is set to be a ConsoleAppender.
|
||||
log4j.appender.A1=org.apache.log4j.ConsoleAppender
|
||||
|
||||
# A1 uses PatternLayout.
|
||||
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
|
||||
|
||||
Loading…
Add table
Reference in a new issue