List of usage examples for java.util.logging Logger setUseParentHandlers
public void setUseParentHandlers(boolean useParentHandlers)
From source file:com.cyberway.issue.crawler.framework.CrawlController.java
private void setupLogFile(Logger logger, String filename, Formatter f, boolean shouldManifest) throws IOException, SecurityException { GenerationFileHandler fh = new GenerationFileHandler(filename, true, shouldManifest); fh.setFormatter(f);/*from w ww . j a v a 2s .co m*/ logger.addHandler(fh); addToManifest(filename, MANIFEST_LOG_FILE, shouldManifest); logger.setUseParentHandlers(false); this.fileHandlers.put(logger, fh); }