|
|||||||||||
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.Logger
org.eclipse.datatools.connectivity.oda.util.logging.Logger
.
Logger
allows callers to log messages for their application.
Loggers should be created using the LogManager.createLogger
method, which creates named loggers with specific logging settings.
Loggers should be named appropriately based on the application using the
logging framework to prevent logger name collision. For example, if
logging were done on javax.sql package, then an appropriate logger name
would be "javax.sql".
Constructor Summary | |
protected |
Logger(java.lang.String loggerName)
Deprecated. Creates a Logger instance with the specified name. |
Method Summary | |
void |
config(java.lang.String message)
Deprecated. Log a CONFIG log message. |
void |
fine(java.lang.String message)
Deprecated. Log a FINE log message. |
void |
finer(java.lang.String message)
Deprecated. Log a FINER log message. |
void |
finest(java.lang.String message)
Deprecated. Log a FINEST log message. |
protected Handler |
getHandler()
Deprecated. Gets the associated Handler . |
Level |
getLevel()
Deprecated. Get the associated log level. |
java.lang.String |
getName()
Deprecated. Gets the name of this Logger . |
void |
info(java.lang.String message)
Deprecated. Log a INFO log message. |
boolean |
isLoggable(Level level)
Deprecated. Checks whether the specified level is loggable by this Logger . |
void |
log(Level level,
java.lang.String message)
Deprecated. Log a message at the specified level. |
void |
log(Level level,
java.lang.Throwable thrown)
Deprecated. Log a throwable at the specified level. |
protected void |
setHandler(Handler handler)
Deprecated. Sets the specified Handler to associate with this
Logger . |
void |
setLevel(Level level)
Deprecated. Sets the level to associate with this Logger . |
void |
severe(java.lang.String message)
Deprecated. Log a SEVERE log message. |
void |
severe(java.lang.Throwable thrown)
Deprecated. Log a SEVERE error or exception. |
void |
warning(java.lang.String message)
Deprecated. Log a WARNING log message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Logger(java.lang.String loggerName)
Logger
instance with the specified name.
The name should be appropriately named based on the application
that is doing the logging.
loggerName
- the name of the logger.Method Detail |
public void severe(java.lang.Throwable thrown)
thrown
- the throwable being thrown.public void severe(java.lang.String message)
message
- the log message.public void warning(java.lang.String message)
message
- the log message.public void info(java.lang.String message)
message
- the log message.public void config(java.lang.String message)
message
- the log message.public void fine(java.lang.String message)
message
- the log message.public void finer(java.lang.String message)
message
- the log message.public void finest(java.lang.String message)
message
- the log message.public void log(Level level, java.lang.String message)
level
- the log level to log the message.message
- the log message.public void log(Level level, java.lang.Throwable thrown)
level
- the log level to log the throwable.thrown
- the throwable to log.public Level getLevel()
public void setLevel(Level level)
Logger
.
level
- the log level to associate.public java.lang.String getName()
Logger
.
protected Handler getHandler()
Handler
.
Handler
.protected void setHandler(Handler handler)
Handler
to associate with this
Logger
.
handler
- the Handler
to associate.public boolean isLoggable(Level level)
Logger
. Also checks whether the Logger
level is set to OFF.
level
- the log level.
Logger
's level and if the
Logger
's level isn't OFF.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |