Created
March 17, 2015 22:07
-
-
Save jlewi/480fbb41b0ce77a4079a to your computer and use it in GitHub Desktop.
Increasing the logging level.
This file contains 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
import java.util.logging.ConsoleHandler; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
public class MyDataflowProgram { | |
public static void main(String[] args) { | |
ConsoleHandler consoleHandler = new ConsoleHandler(); | |
consoleHandler.setLevel(Level.ALL); | |
Logger googleApiLogger = Logger.getLogger("com.google.api"); | |
googleApiLogger.setLevel(Level.ALL); | |
googleApiLogger.setUseParentHandlers(false); | |
googleApiLogger.addHandler(consoleHandler); | |
... Pipeline Construction ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment