Author: tschoening
Date: Sun Oct 11 06:41:43 2015
New Revision: 1707951
URL: http://svn.apache.org/viewvc?rev=1707951&view=rev
Log:
I always wondered why I get the folder "xyz" in my root and found the reason
now, it's created during errorhandlertest, which uses fallback1.xml. I moved
that folder to the output dir, which seems to be the better place and the test
still passes. I guess it doesn't care where the folder is, but only relies on
:x.log not being created and that's still the case. Anyways, we dont' want to
write to arbitrary places in the file system, especially not into non-temp
folders and if we write everything else to "output" already.
Modified:
incubator/log4cxx/trunk/src/test/resources/input/xml/fallback1.xml
Modified: incubator/log4cxx/trunk/src/test/resources/input/xml/fallback1.xml
URL:
http://svn.apache.org/viewvc/incubator/log4cxx/trunk/src/test/resources/input/xml/fallback1.xml?rev=1707951&r1=1707950&r2=1707951&view=diff
==============================================================================
--- incubator/log4cxx/trunk/src/test/resources/input/xml/fallback1.xml
(original)
+++ incubator/log4cxx/trunk/src/test/resources/input/xml/fallback1.xml Sun Oct
11 06:41:43 2015
@@ -27,26 +27,26 @@
<appender-ref ref="FALLBACK" />
</errorHandler>
- <param name="File" value="/xyz/:x.log" />
- <param name="Append" value="false" />
-
+ <param name="File" value="output/xyz/:x.log" />
+ <param name="Append" value="false" />
+
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{2} - %m%n"/>
- </layout>
+ </layout>
</appender>
-
+
<appender name="FALLBACK" class="org.apache.log4j.FileAppender">
<param name="File" value="output/temp" />
<param name="Append" value="false" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="FALLBACK - %c - %m%n"/>
- </layout>
+ </layout>
</appender>
-
-
+
+
<root>
<priority value ="debug" />
<appender-ref ref="PRIMARY" />
</root>
-
+
</log4j:configuration>