logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Glezen <pgle...@atdial.net>
Subject Re: logging statements were logged into different log files.
Date Mon, 02 Apr 2001 14:57:17 GMT
DerekChan@sns.com.sg wrote:

> The situation is like this:
> I have two programs A & B in two difference directories, and they are
> reading their own configuration-files, named as log.config in their own
> directory.

When you say different "programs", do you mean they run different

> The problem is debug messages in program A will get logged into program B.
> (I'm sure that program A is reading its own log.config file and the
> following is set in the log.config file.

You don't indicate how you are reading the config files.  If you are
letting the log4j static initializer do it for you, keep in mind that it
looks in the classpath for resources.  So if each of those directories
is in the classpath, which ever one is first will get read in.

- Paul

Beware of bugs in the above code.  I have
only proved it correct, not tried it.
-Don Knuth

To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

View raw message