Example usage for java.util.logging Logger setUseParentHandlers

List of usage examples for java.util.logging Logger setUseParentHandlers

Introduction

In this page you can find the example usage for java.util.logging Logger setUseParentHandlers.

Prototype

public void setUseParentHandlers(boolean useParentHandlers) 

Source Link

Document

Specify whether or not this logger should send its output to its parent Logger.

Usage

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);
}