This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * use slf4j to bridge java.util.logging | |
| */ | |
| // Optionally remove existing handlers attached to j.u.l root logger | |
| SLF4JBridgeHandler.removeHandlersForRootLogger(); // (since SLF4J 1.6.5) | |
| // add SLF4JBridgeHandler to j.u.l's root logger, should be done once | |
| // during the initialization phase of your application | |
| SLF4JBridgeHandler.install(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // disable java.util.logging | |
| Logger globalLogger = Logger.getLogger(""); | |
| Handler[] handlers = globalLogger.getHandlers(); | |
| for (Handler handler : handlers) { | |
| globalLogger.removeHandler(handler); | |
| } |