posted 19 years ago
Hi,
I'm trying to create a log4j log file with only output from the RallyLog class ( within the com.zzz.pr.components see below) and keep all the other portal logging the same.
Below is the only config that even works but turns off console debug level logging & I remember exceptions on the console (not good !) Any suggestions would be appreciated I have unsuccessfully tried a number of configurations including using filtering & a logger.
thanks
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="PERF_LOG" class="org.apache.log4j.FileAppender">
<param name="File" value="c:/my_unique/providers/logs/perf.log" />
<param name="Threshold" value="info"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{2} - %m\n"/>
</layout>
</appender>
<logger name="com.zzz.pr.components">
<level value="INFO"/>
</logger>
<root>
<level value ="OFF"/>
<appender-ref ref="PERF_LOG" />
</root>
</log4j:configuration>