Skip to content

Instantly share code, notes, and snippets.

@jlewi
Created March 17, 2015 22:07
Show Gist options
  • Save jlewi/480fbb41b0ce77a4079a to your computer and use it in GitHub Desktop.
Save jlewi/480fbb41b0ce77a4079a to your computer and use it in GitHub Desktop.
Increasing the logging level.
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