I'd like to configure log4j
in a huge distributed system. There are a lot of JVMs and processes and (as I am only a student) I am new to such a situation. I use JMS Appender
, so I need two files: log4j.properties
, jndi.properties
.
I've tried some ways:
- Put these files into
src
folder - or into
src/java
- add jvm argument
-Dlog4j.configuration=C:\...\log4j.properties
I don't want to set it in code using PropertyConfigurator.configure("path")
, because I'd like to not change source code at all.
Are there any other ways to configure log4j
? Or maybe I am missing something? I still get a messages
No appenders could be found for logger (some.package.SomeClass).
Please initialize the log4j system properly.