Possible Duplicate:
Dynamically Changing log4j log level
I have a jar file with a log4j properties file included. I tried to use
-Dlog4j.configuration=file:[filename]
to change the properties file at runtime using java, and it didn't work. I need to do this in a sh file Can anyone please tell me how to this? I also tried adding
-Dlog4j.defaultInitOverride=true