You need to set the root level to debug, because you do want all the debug and above messages to be logged. Attach the 3 appenders to the root logger, then set the threshold level on the individual appenders themselves.
> -----Original Message----- > From: Richard Bair [mailto:[EMAIL PROTECTED]] > Sent: 12 February 2003 23:20 > To: Log4J Developers List > Subject: Multiple Levels per Category/Logger > > > From looking in the code it looks like (with the properties > files for sure, but with the xml files as well it appears) we > can only assign one level per category/logger. Is this correct? > > The basic idea is that, say, any warnings received at the > root level we'd like to log to 3 different appenders, but any > debug statements (or info, warn, error, fatal) we want to > write to another appender. > > Therefore, the 3 loggers might be a db appender, an email > appender, and a socket. Then, the "geek log" appender would > be written to a rolling file appender. The first 3 would get > only warnings+, while the geek log would get everything. > > In the code it appears that this isn't possible right now. > > Is this correct? > > Thanks, > Richard > > PS> This seemed to be borderline log4j users. Sorry if its > in the wrong > place > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]