views:

15

answers:

0

can more than one application write to the same log file using log4cxx?? do i have to do anything different for more than one application to write to the same log file?

this is how my xml file is currently setup:

<?xml version="1.0" encoding="UTF-8"?>
<log4j:configuration debug="true" xmlns:log4j='http://jakarta.apache.org/log4cxx/'&gt;
<root>
    <level value="DEBUG"/>
<appender-ref ref="RollingFileAppender"/>
</root>
<appender name="RollingFileAppender" class="log4cxx.rolling.RollingFileAppender">
    <param name="Append" value="true" />
<param name="FileNamePattern" value="..\Debug\logs\OrderGatewayService.%d{yyyyMMdd}.log"/> 
<rollingPolicy class="log4cxx.rolling.TimeBasedRollingPolicy">  
        <param name="FileNamePattern" value="..\Debug\logs\OrderGatewayService.%d{yyyyMMdd}.log"/> 
</rollingPolicy>
<layout class="log4cxx.PatternLayout">
        <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p [%method(%line)] %m%n" />
</layout>
</appender>