Example usage for java.util.logging Handler setErrorManager

List of usage examples for java.util.logging Handler setErrorManager

Introduction

In this page you can find the example usage for java.util.logging Handler setErrorManager.

Prototype

public synchronized void setErrorManager(ErrorManager em) 

Source Link

Document

Define an ErrorManager for this Handler.

Usage

From source file:MailHandlerDemo.java

/**
 * Common fallback settings for a single handler.
 *
 * @param h the handler.//from   w ww .  j av  a2  s .c  o m
 */
private static void fallbackSettings(Handler h) {
    if (h != null) {
        h.setErrorManager(new FileErrorManager());
        h.setLevel(Level.ALL);
    }
}