-----Original Message-----
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 8:15 PM

At 17:01 24.01.2001 -0800, you wrote:
>Hello,
>
>from the documentation it sounds like the use the
>PropertyConfigurator.configure() method is not necessaryo to read in the
>configuration file if I specify the log4j.properties and its location is
>included in the classpath? However, when I instantiate the Category class
>it does not read the log4j.properties(even when added in the classpath).
>Any clues?


As far as I know, adding the log4j.properties file to the classpath does
not help. You should add the *directory* where you placed log4j.properties
to the classpath.

>I'm building a web application running on an application server with
>application instances in several JVMs on the same box. Some of the logging
>will be to a file, and would there be a problem having several application
>instances logging to the same file?


Yes. It will be a problem. Use SocketAppender(s)/SocketServer or
JMSAppender(s)/JMSSink instead. Ceki

How about a situation where 1 or more instances of multiple objects are
running within a single JVM and using a single instance of an object that is
a wrapper around Log4J?
Should I synchronize all calls to category.log(...) method in my wrapper?
Logging is being done to a local file.
Thanks,
Otis




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

Reply via email to