Hello, thanks for your answers.
Well anybody has experience with xml config files ?
My question is about: can I specify a package as name attribute
instead of a fully qualified Class name ? my aim is to log every package
with a different appender as I said.
As you noticed I have created 2 console appenders (CONSOLE & CONSOLEVERBOSE). My 
purpose is to use one basic console appender for a package and a "richer" one for 
another package (but still on the console).
 
So anybody got experience with this ?
Thanks again
Francis

Alan Brown <[EMAIL PROTECTED]> wrote:
I don't use the xml configuration file so there may be more errors than
the ones I mention. However, with that caveat...

You haven't spelt additivity correctly for one...

""

Also, you appear to have all of the appenders be ConsoleAppenders so it
would seem natural that they'd all be writing to the same place (the
console). Perhaps you intend to be using RollingFileAppenders.

Finally, you need to use the fully qualified class name to make the
appenders work, so it's hard to imagine that this file would do anything
for you at all.

But, as I said, I don't use this format for my config file, so maybe I'm
wrong...

alan



-----Original Message-----
From: gfdgdf gdfgdf [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 12, 2004 1:47 AM
To: [EMAIL PROTECTED]
Subject: Logging every package with a different appender

Hi all log4j users !
I have a web application that uses several packages:

webapp.beans
webapp.servlets
webapp.customtags

Now I'd like to use a different appender for every package.

My log4j.xml file is basically like this:


......



......




......





























Unfortunately I get in the FILE appender also logs from other
packages....can anybody point out what is wrong with it ?
Thanks a lot
Francesco


---------------------------------
Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

                
---------------------------------
Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo!

Reply via email to