Re: Different levels to different appenders

2008-02-21 Thread Jim Reilly
. It logs all -- !-- statistics info for the user -- logger name=com.firstpac.etools.log4j.clientStats level value=info / appender-ref ref=clientStats / /logger /log4j:configuration -Jim Reilly - Original Message From: Mikael Ståldal [EMAIL PROTECTED

Re: Different levels to different appenders

2008-02-21 Thread Jim Reilly
Mikael, I think your main problem here is that you cannot put the same logger name =xxx and have that xxx be the same string, to be able to seperate by logging level.I think your only way would be to have multiple appenders that each have their own log file that are by log level. This is

Re: Parsing problem

2008-02-19 Thread Jim Reilly
Try the xml below. A few problems. The renderer tag needs to be empty (per DTD), so need to close the tag in same tag (not use a /renderer). Also I think order matters, so need to keep in this order: renderer*, appender*,(category|logger)*,root?, categoryFactory? -Jim ?xml version=1.0

Roll a Log File on restart of an App run

2008-02-15 Thread Jim Reilly
Per each restart of an app, I would like to have the ability to have the log files roll (like the RollingFileAppender), so each new run has its own log file run. Is there are my to do this via the log4j config file or another file appender? I could see how that might be difficult to do or