|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.util.logging.LogRecord
public class LogRecord
LogRecord
contains information that can be logged
by a Handler
.
Constructor Summary | |
---|---|
LogRecord(Level level,
java.lang.String message)
Creates a LogRecord instance with the specified
log level and message. |
Method Summary | |
---|---|
Level |
getLevel()
Gets the logging level. |
java.lang.String |
getMessage()
Gets the log message. |
long |
getMillis()
Gets the log time. |
java.lang.Throwable |
getThrown()
Gets the associated Throwable . |
void |
setLevel(Level level)
Sets the logging level to the specified value. |
void |
setMessage(java.lang.String message)
Sets the LogRecord message to the specified value. |
void |
setMillis(long millis)
Sets the LogRecord time to the specified value. |
void |
setThrown(java.lang.Throwable thrown)
Sets an associated Throwable to the LogRecord . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogRecord(Level level, java.lang.String message)
LogRecord
instance with the specified
log level and message. The LogRecord
will automatically
be set with the current time.
level
- the log level.message
- the log message.Method Detail |
---|
public Level getLevel()
public void setLevel(Level level)
level
- the new logging level.public void setMessage(java.lang.String message)
LogRecord
message to the specified value.
message
- the new log message.public java.lang.String getMessage()
public void setMillis(long millis)
LogRecord
time to the specified value.
millis
- the new time.public long getMillis()
public void setThrown(java.lang.Throwable thrown)
Throwable
to the LogRecord
.
thrown
- the Throwable
.public java.lang.Throwable getThrown()
Throwable
.
Throwable
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |