Rev | Line | |
---|
[49] | 1 | <?xml version="1.0" encoding="UTF-8" ?> |
---|
| 2 | <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> |
---|
| 3 | |
---|
| 4 | <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> |
---|
| 5 | <appender name="consoleAppender" class="org.apache.log4j.ConsoleAppender"> |
---|
[64] | 6 | <param name="Threshold" value="INFO" /> |
---|
[49] | 7 | <layout class="org.apache.log4j.PatternLayout"> |
---|
[54] | 8 | <param name="ConversionPattern" value="%d{[yyyy-MM-dd HH:mm:ss]} %-5p %c:%L - %m%n" /> |
---|
[49] | 9 | </layout> |
---|
| 10 | </appender> |
---|
| 11 | |
---|
| 12 | <appender class="org.apache.log4j.rolling.RollingFileAppender" name="A2"> |
---|
| 13 | <param value="true" name="append"/> |
---|
| 14 | <param value="logs/objectmq-temp.log" name="File"/> |
---|
| 15 | |
---|
| 16 | <rollingPolicy class="org.apache.log4j.rolling.FixedWindowRollingPolicy"> |
---|
| 17 | <param name="fileNamePattern" value="logs/objectmq-%i.log" /> |
---|
| 18 | <param name="MinIndex" value="0"/> |
---|
| 19 | <param name="MaxIndex" value="1"/> |
---|
| 20 | </rollingPolicy> |
---|
| 21 | |
---|
| 22 | <triggeringPolicy class="org.apache.log4j.rolling.SizeBasedTriggeringPolicy"> |
---|
| 23 | <param name="MaxFileSize" value="10000000"/> |
---|
| 24 | </triggeringPolicy> |
---|
| 25 | |
---|
| 26 | <layout class="org.apache.log4j.PatternLayout"> |
---|
[54] | 27 | <param value="%d{[yyyy-MM-dd HH:mm:ss]} %-5p %c:%L - %m%n" name="ConversionPattern"/> |
---|
[49] | 28 | </layout> |
---|
| 29 | </appender> |
---|
| 30 | |
---|
| 31 | <root> |
---|
[64] | 32 | <priority value ="info" /> |
---|
[49] | 33 | <appender-ref ref="consoleAppender" /> |
---|
| 34 | <appender-ref ref="A2" /> |
---|
| 35 | </root> |
---|
| 36 | |
---|
| 37 | </log4j:configuration> |
---|
Note: See
TracBrowser
for help on using the repository browser.