List of usage examples for java.util.logging Level ALL
Level ALL
To view the source code for java.util.logging Level ALL.
Click Source Link
From source file:com.ontologycentral.ldspider.LDSpider_LogUtil.java
public static void setDefaultLogging() { Logger.getLogger("").setLevel(Level.WARNING); // Suppress silly cookie warnings. Logger.getLogger("org.apache.commons.httpclient").setLevel(Level.SEVERE); Logger.getLogger("").getHandlers()[0].setLevel(Level.ALL); }
From source file:Main.java
/** * Tells Java's Logging infrastructure to output whatever it possibly can, this is only needed * in Java, not in Android.//from ww w . j av a2 s .c o m */ public static void outputAsMuchLoggingAsPossible() { Logger log = Logger.getLogger("com.couchbase.lite"); ConsoleHandler handler = new ConsoleHandler(); handler.setLevel(Level.ALL); log.addHandler(handler); log.setLevel(Level.ALL); }
From source file:org.deri.any23.LogUtil.java
public static void setVerboseLogging() { Logger.getLogger("").setLevel(Level.INFO); Logger.getLogger("org.deri.any23").setLevel(Level.ALL); Logger.getLogger("").getHandlers()[0].setLevel(Level.ALL); }
From source file:com.ontologycentral.ldspider.LDSpider_LogUtil.java
public static void setVerboseLogging() { Logger.getLogger("").setLevel(Level.INFO); Logger.getLogger("com.ontologycentral.ldspider").setLevel(Level.ALL); Logger.getLogger("").getHandlers()[0].setLevel(Level.ALL); }
From source file:jshm.logging.Log.java
public static void configTestLogging() { Handler consoleHandler = new ConsoleHandler(); consoleHandler.setLevel(Level.ALL); consoleHandler.setFormatter(new OneLineFormatter()); Logger cur = Logger.getLogger(""); removeHandlers(cur);/* w w w . j a v a 2s . c o m*/ // cur.setLevel(Level.ALL); cur.addHandler(consoleHandler); cur = Logger.getLogger("jshm"); cur.setLevel(Level.ALL); cur = Logger.getLogger("httpclient.wire.header"); cur.setLevel(Level.ALL); // cur = Logger.getLogger("org.hibernate"); // removeHandlers(cur); // // cur.setLevel(Level.INFO); }
From source file:org.apache.any23.util.LogUtils.java
public static void setVerboseLogging() { Logger.getLogger("").setLevel(Level.INFO); Logger.getLogger("org.apache.any23").setLevel(Level.ALL); Logger.getLogger("").getHandlers()[0].setLevel(Level.ALL); }
From source file:it.unibo.alchemist.utils.L.java
/** * @param h//from w ww . jav a 2 s . c o m * the handler to attach */ @Deprecated public static void addHandler(final Handler h) { h.setLevel(Level.ALL); LOGGER.addHandler(h); }
From source file:org.stanwood.nwn2.gui.logging.JavaLoggingToCommonLoggingRedirector.java
/** * Activates this feature.//ww w . jav a 2s . c om */ public static void activate() { try { Logger rootLogger = LogManager.getLogManager().getLogger(""); // remove old handlers for (Handler handler : rootLogger.getHandlers()) { rootLogger.removeHandler(handler); } // add our own activeHandler = new JDKLogHandler(); activeHandler.setLevel(Level.ALL); rootLogger.addHandler(activeHandler); rootLogger.setLevel(Level.ALL); } catch (Exception exc) { LogFactory.getLog(JavaLoggingToCommonLoggingRedirector.class).error("activation failed", exc); } }
From source file:at.bitfire.davdroid.log.LogcatHandler.java
private LogcatHandler() { super(); setFormatter(PlainTextFormatter.LOGCAT); setLevel(Level.ALL); }
From source file:jshm.logging.Log.java
public static void reloadConfig() throws Exception { // all logging Handler consoleHandler = new ConsoleHandler(); consoleHandler.setLevel(DEBUG ? Level.ALL : Level.WARNING); consoleHandler.setFormatter(new OneLineFormatter()); Logger cur = Logger.getLogger(""); removeHandlers(cur);/* www . j av a2 s .c o m*/ cur.addHandler(consoleHandler); // jshm logging Formatter fileFormatter = new FileFormatter(); Handler jshmHandler = new FileHandler("data/logs/JSHManager.txt"); jshmHandler.setLevel(Level.ALL); jshmHandler.setFormatter(fileFormatter); cur = Logger.getLogger("jshm"); cur.addHandler(jshmHandler); cur.setLevel(DEBUG ? Level.ALL : Level.INFO); // hibernate logging Handler hibernateHandler = new FileHandler("data/logs/Hibernate.txt"); hibernateHandler.setLevel(Level.ALL); hibernateHandler.setFormatter(fileFormatter); cur = Logger.getLogger("org.hibernate"); removeHandlers(cur); cur.addHandler(hibernateHandler); cur.setLevel(DEBUG ? Level.INFO : Level.WARNING); // HttpClient logging Handler httpClientHandler = new FileHandler("data/logs/HttpClient.txt"); httpClientHandler.setLevel(Level.ALL); httpClientHandler.setFormatter(fileFormatter); // cur = Logger.getLogger("httpclient.wire"); cur = Logger.getLogger("httpclient.wire.header"); removeHandlers(cur); cur.addHandler(httpClientHandler); cur.setLevel(DEBUG ? Level.ALL : Level.INFO); cur = Logger.getLogger("org.apache.commons.httpclient"); removeHandlers(cur); cur.addHandler(httpClientHandler); cur.setLevel(DEBUG ? Level.FINER : Level.INFO); // HtmlParser logging Handler htmlParserHandler = new FileHandler("data/logs/HtmlParser.txt"); htmlParserHandler.setLevel(Level.ALL); htmlParserHandler.setFormatter(fileFormatter); cur = Logger.getLogger("org.htmlparser"); removeHandlers(cur); cur.addHandler(htmlParserHandler); cur.setLevel(DEBUG ? Level.ALL : Level.INFO); // SwingX logging Handler swingxHandler = new FileHandler("data/logs/SwingX.txt"); swingxHandler.setLevel(Level.ALL); swingxHandler.setFormatter(fileFormatter); cur = Logger.getLogger("org.jdesktop.swingx"); removeHandlers(cur); cur.addHandler(swingxHandler); cur.setLevel(DEBUG ? Level.ALL : Level.INFO); }