stdoutHandler.setLevel(Level.ALL);
stdoutHandler.setMaxLevel(Level.INFO);
stdoutHandler.setFormatter(new ClassFormatter());
stdoutHandler.setHook(new AsyncInvocationHandler<StreamHandler>());
StderrHandler stderrHandler = new StderrHandler();
stderrHandler.setLevel(Level.WARNING);
stderrHandler.setMaxLevel(Level.SEVERE);
stderrHandler.setFormatter(new ClassFormatter());
stderrHandler.setHook(new AsyncInvocationHandler<StreamHandler>());
java.util.logging.Logger logger = java.util.logging.Logger.getLogger("com.mycila");
logger.setLevel(Level.ALL);
logger.addHandler(stdoutHandler);
logger.addHandler(stderrHandler);