Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

s4-core: stop log4j complaining about the file format

  • Loading branch information...
commit 01e7a1e3a0908b0ad14aeaa8b8ffe280b116d13c 1 parent 212d1ef
Keith Gregory authored
Showing with 16 additions and 17 deletions.
  1. +16 −17 s4-core/src/main/resources/s4-core/conf/default/log4j.xml
View
33 s4-core/src/main/resources/s4-core/conf/default/log4j.xml
@@ -1,6 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+
+ <appender name="R" class="org.apache.log4j.DailyRollingFileAppender">
+ <param name="File" value="${log_loc}/s4-core/s4-core_${instanceId}.log" />
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %c %p (%F:%L) %m%n"/>
+ </layout>
+ </appender>
+ <appender name="S" class="org.apache.log4j.DailyRollingFileAppender">
+ <param name="File" value="${log_loc}/s4-core/s4-core_${instanceId}.mon" />
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %c %p (%F:%L) %m%n"/>
+ </layout>
+ </appender>
+
<logger name="com.yahoo" additivity="false">
<level value="info"/>
<appender-ref ref="R"/>
@@ -25,24 +39,9 @@
<level value="info"/>
<appender-ref ref="S"/>
</logger>
- <appender name="R" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="${log_loc}/s4-core/s4-core_${instanceId}.log" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d %c %p (%F:%L) %m%n"/>
- </layout>
- </appender>
- <appender name="S" class="org.apache.log4j.DailyRollingFileAppender">
- <param name="File" value="${log_loc}/s4-core/s4-core_${instanceId}.mon" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="%d %c %p (%F:%L) %m%n"/>
- </layout>
- </appender>
+
<root>
<priority value ="info" />
<appender-ref ref="R" />
</root>
-</log4j:configuration>
-
-
-
-
+</log4j:configuration>
Please sign in to comment.
Something went wrong with that request. Please try again.