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/">
You want to keep the other logging the same as what?
Basically it looks like you need another appender and use one appender for the com.zz.pr.components logger and the other for the root logger.
Add an appender-ref to your com.zz.pr.components logger : <appender-ref ref="OTHER_LOG" />
Doesn't help? Post the new xml. [ March 31, 2005: Message edited by: Carol Enderlin ]
Joined: Mar 31, 2005
thank you so much ! you were right !
this xml config creates a log file for info level messages generated from classes in the com.zz.pr.components package and also logs them to the console. All other logging messages are left in tact as before.