|
@@ -23,8 +23,10 @@
|
|
|
package password.pwm.util.logging;
|
|
|
|
|
|
import com.novell.ldapchai.ChaiUser;
|
|
|
+
|
|
|
import org.apache.log4j.*;
|
|
|
import org.apache.log4j.xml.DOMConfigurator;
|
|
|
+
|
|
|
import password.pwm.AppProperty;
|
|
|
import password.pwm.PwmApplication;
|
|
|
import password.pwm.PwmConstants;
|
|
@@ -95,9 +97,8 @@ public class PwmLogManager {
|
|
|
|
|
|
initFileLogger(config, fileLogLevel, pwmApplicationPath);
|
|
|
|
|
|
- // disable jersey warnings.
|
|
|
- java.util.logging.LogManager.getLogManager().addLogger(java.util.logging.Logger.getLogger("com.sun.jersey.spi.container.servlet.WebComponent"));
|
|
|
- java.util.logging.LogManager.getLogManager().getLogger("com.sun.jersey.spi.container.servlet.WebComponent").setLevel(java.util.logging.Level.OFF);
|
|
|
+ // disable java's logging altogether, since you can't seem to change the log level for Jersey programmatically, and have it stick.
|
|
|
+ java.util.logging.LogManager.getLogManager().reset();
|
|
|
}
|
|
|
|
|
|
private static void initConsoleLogger(
|