How to refresh log4j after change of the external class logging level at runtime
问题 I have some warnings which I want to disable. They comes from the org.eclipse.lyo.oslc4j.provider.jena.JenaModelHelper class. So I am using log4j and I call at rutime Logger.getLogger("org.eclipse.lyo.oslc4j.provider.jena.JenaModelHelper").setLevel(Level.OFF); but nothing happens. For that purpose I debug the problematic code and first 3 times the warn was displayed, but on the 4-th hit the level was changed. I changed the log level at the begging(in the constructor) so I suppose there is