|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.data.oda.util.logging.Handler
org.eclipse.datatools.connectivity.oda.util.logging.Handler
.
Handler
is an abstract class that takes LogRecords
from a Logger
and outputs them. All log handler should inherit
from this class and may publish log records to its supported sources. (i.e.
console, file, etc. )
Constructor Summary | |
protected |
Handler()
Deprecated. Creates a Handler instance. |
Method Summary | |
abstract void |
close()
Deprecated. Close the Handler and free up resources. |
abstract void |
flush()
Deprecated. Flushes buffered output. |
Filter |
getFilter()
Deprecated. Gets the Filter associated with this Handler . |
LogFormatter |
getFormatter()
Deprecated. Gets the LogFormatter associated with this Handler . |
Level |
getLevel()
Deprecated. Gets the Level associated with this Handler . |
LoggingErrorHandler |
getLoggingErrorHandler()
Deprecated. Gets the LoggingErrorHandler associated with this Handler . |
boolean |
isLoggable(LogRecord record)
Deprecated. Checks whether the specified LogRecord should be logged. |
abstract void |
publish(LogRecord record)
Deprecated. Publish the specified LogRecord . |
protected void |
reportError(java.lang.String message,
java.lang.Exception exception,
int errorCode)
Deprecated. Reports an error to the assocated LoggingErrorHandler . |
void |
setFilter(Filter filter)
Deprecated. Sets the Filter for this Handler . |
void |
setFormatter(LogFormatter formatter)
Deprecated. Sets the LogFormatter for this Handler . |
void |
setLevel(Level level)
Deprecated. Sets the Level for this Handler . |
void |
setLoggingErrorHandler(LoggingErrorHandler errorHandler)
Deprecated. Sets the LoggingErrorHandler for this Handler . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Handler()
Handler
instance.
Method Detail |
public abstract void close()
Handler
and free up resources.
public abstract void flush()
public abstract void publish(LogRecord record)
LogRecord
. The record should
only be published if it has the adequate log level, passes the
associated Filter
. This is responsible for formatting
the LogRecord
, if necessary.
record
- the log record to publish.public boolean isLoggable(LogRecord record)
LogRecord
should be logged.
This checks whether the LogRecord
has the adequate log level,
passes the associated Filter
, or other Handler
specific checks.
record
- the log record.
protected void reportError(java.lang.String message, java.lang.Exception exception, int errorCode)
LoggingErrorHandler
.
message
- the error message.exception
- the exception that caused the error.errorCode
- the error code.public void setLoggingErrorHandler(LoggingErrorHandler errorHandler)
LoggingErrorHandler
for this Handler
.
errorHandler
- the error handler to set.public LoggingErrorHandler getLoggingErrorHandler()
LoggingErrorHandler
associated with this Handler
.
public void setFilter(Filter filter)
Filter
for this Handler
.
filter
- the filter to set.public Filter getFilter()
Filter
associated with this Handler
.
public void setFormatter(LogFormatter formatter)
LogFormatter
for this Handler
.
formatter
- the formatter to set.public LogFormatter getFormatter()
LogFormatter
associated with this Handler
.
public void setLevel(Level level)
Level
for this Handler
.
level
- the level to set.public Level getLevel()
Level
associated with this Handler
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |