This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.