***  This API provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.logging.util
Class LoggerHandler

java.lang.Object
  |
  +--java.util.logging.Handler
        |
        +--com.sas.services.logging.util.LoggerHandler

public class LoggerHandler
extends Handler

A utility class that makes a com.sas.services.logging.LoggerInterface look like a java.util.logging.Logger.


Constructor Summary
LoggerHandler(LoggerInterface logger)
          Contruct a java.util.logging.Handler subclass that writes messages to a com.sas.services.logging.LoggerInterface.
LoggerHandler(LoggerInterface logger, Formatter formatter)
           
LoggerHandler(LoggerInterface logger, Formatter formatter, String loggingContext)
           
 
Method Summary
 void close()
           
 void flush()
           
 Formatter getFormatter()
           
 Level getLevel()
           
 String getLoggingContext()
           
 void publish(LogRecord logRecord)
           
 void setFormatter(Formatter newFormatter)
           
 void setLevel(Level level)
           
 void setLoggingContext(String loggingContext)
           
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, isLoggable, reportError, setEncoding, setErrorManager, setFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerHandler

public LoggerHandler(LoggerInterface logger)
Contruct a java.util.logging.Handler subclass that writes messages to a com.sas.services.logging.LoggerInterface.
Parameters:
logger - the com.sas.services.logging.LoggerInterface to write to.

LoggerHandler

public LoggerHandler(LoggerInterface logger,
                     Formatter formatter)

LoggerHandler

public LoggerHandler(LoggerInterface logger,
                     Formatter formatter,
                     String loggingContext)
Method Detail

close

public void close()
Overrides:
close in class Handler

flush

public void flush()
Overrides:
flush in class Handler

publish

public void publish(LogRecord logRecord)
Overrides:
publish in class Handler

setLevel

public void setLevel(Level level)
Overrides:
setLevel in class Handler

getLevel

public Level getLevel()
Overrides:
getLevel in class Handler

setFormatter

public void setFormatter(Formatter newFormatter)
Overrides:
setFormatter in class Handler

getFormatter

public Formatter getFormatter()
Overrides:
getFormatter in class Handler

setLoggingContext

public void setLoggingContext(String loggingContext)

getLoggingContext

public String getLoggingContext()

***  This API provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:29:00