I must not be looking in the right place, but from reading the documentation
it appears that the following is possible:

log4j.logger.<package_name>=DEBUG, A1
log4j.logger.<another_package_name>=FATAL, A1
(assume <package_name> and <another_package_name> do not overlap for
simplicity sake)

where, all of the classes under <package_name> will use the first
configuration and the classes under <another_package_name> will use the
second - rather than having to list each class separately (and I don't want
them to inheirit the root loggers config - i.e. additivity is false)

in other words, if i have a class:

package <package_name>;

public class AClass {
    Logger logger = Logger.getLogger( this.getClass() );
}

then it would look get a logger with the first configuration.

So, my question is - (1) is that true - and possible?,  (2) what is the
proper syntax in the configuration file?

Also, it must be in a configuration file ... I know how much everyone likes
to do it programatically, but I cannot.


thanks
scott

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

Reply via email to