com.resilientedge.util.logger.console
Class ConsoleHandler

java.lang.Object
  |
  +--com.resilientedge.util.logger.AbstractHandler
        |
        +--com.resilientedge.util.logger.console.ConsoleHandler
All Implemented Interfaces:
Handler

public class ConsoleHandler
extends AbstractHandler

A Handler for logging messages to the Console.

Author:
odh

Constructor Summary
ConsoleHandler()
          Construct a handler with its default formatter.
 
Method Summary
 Formatter getDefaultFormatter()
          This method returns the default Formatter for this Handler.
 void publish(LogRecord logRecord)
          This method processes the log record and displays the message using System.out.println().
 
Methods inherited from class com.resilientedge.util.logger.AbstractHandler
getFormatter, lookupConfig, setFormatter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleHandler

public ConsoleHandler()
Construct a handler with its default formatter.
Method Detail

getDefaultFormatter

public Formatter getDefaultFormatter()
This method returns the default Formatter for this Handler. The default Formatter for a Console Handler is a Console Formatter.
Overrides:
getDefaultFormatter in class AbstractHandler
Returns:
 

publish

public void publish(LogRecord logRecord)
             throws LoggerException
This method processes the log record and displays the message using System.out.println().
Overrides:
publish in class AbstractHandler
Parameters:
logRecord -  
Throws:
LoggerException -  


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.