Initial commit
This commit is contained in:
18
conf/log4j.xml
Normal file
18
conf/log4j.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
|
||||
<log4j:configuration debug="true" xmlns:log4j='http://jakarta.apache.org/log4j/'>
|
||||
<appender name="file" class="org.apache.log4j.RollingFileAppender">
|
||||
<param name="append" value="false" />
|
||||
<param name="maxFileSize" value="10KB" />
|
||||
<param name="maxBackupIndex" value="5" />
|
||||
<!-- For Tomcat -->
|
||||
<param name="file" value="./conf/logs/myStruts1App.log" />
|
||||
<layout class="org.apache.log4j.PatternLayout">
|
||||
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n" />
|
||||
</layout>
|
||||
</appender>
|
||||
<root>
|
||||
<level value="ERROR" />
|
||||
<appender-ref ref="file" />
|
||||
</root>
|
||||
</log4j:configuration>
|
||||
Reference in New Issue
Block a user