Hi,
I built a copy of log4cxx-0.9.8 on windows and now my app won't
write to the log file. It was working fine using the previous version.
There is a message sent to the console "log4cxx: No output stream or
file set for the appender named [FILE].".
The "EventLog" appender works just fine so I figure it is a config
issue. My config file is below.
If someone can point out what needs to be changed, I would be most
appreciative.
thanks
john
<?xml version="1.0" encoding="UTF-8" ?>
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="FILE" class="org.apache.log4j.DailyRollingFileAppender">
<param name="File" value="log/server.log" />
<param name="Append" value="true" />
<param name="DatePattern" value=".%Y-%m-%d" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
</layout>
</appender>
<appender name="EventLog" class="org.apache.log4j.nt.NTEventLogAppender">
<param name="source" value="CallRecordingEngine" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n"/>
</layout>
</appender>
<category name="EventLog">
<priority value="INFO" />
<appender-ref ref="EventLog" />
</category>
<root>
<priority value="DEBUG" />
<appender-ref ref="FILE" />
</root>
</log4j:configuration>