Writing to log files with different names

2001-05-04 Thread Marc Harrington
Hi, I'm trying to get my programs to write to log files with different names. Do i need to create a seperate configuration file for each program to do this ? Thanks in advance, Marc Harrington - To unsubscribe, e-mail: [EMAIL

log4j.properties file location bug?

2001-05-04 Thread Hansen, Richard
I don't know if this is a exactly bug. But is an issue and should at least be added to the FAQ I think. To get log4j to automatically load a properties file I need to explicitly add the log4j jars to the classpath. Next, I must put the properties file in the same directory as the log4j jar files.

RE: log4j.properties file location bug?

2001-05-04 Thread Jeet Marwah
Hi , What u have done is right? The reason is that u must be using the Properties class and must be passing the obj to the log4j configurator. U can put ur config file in any folder that u want and if u are using the Properties class , the following things can be done: 1) set the classpath to tha

RE: log4j.properties file location bug?

2001-05-04 Thread Hansen, Richard
I know what is happening and I know how to use getResourceAsStream. It seems to me kind of problematic and possibly confusing. To use the log4j auto loading of properties you MUST explicitly put the log4j jars in the path and the log4j.properties file has to be in the same directory as the jars.