|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.boot.logger.LogRecord
LogRecord
| Constructor Summary | |
LogRecord(LogLevel level,
java.lang.String msg)
Construct a LogRecord with the given level and message values. |
|
| Method Summary | |
LogLevel |
getLevel()
Get the logging message level, for example Level.SEVERE. |
java.lang.String |
getLevelName()
|
java.lang.String |
getLoggerName()
Get the source Logger name's |
java.lang.String |
getMessage()
|
long |
getMillis()
Get event time in milliseconds since 1970. |
java.lang.Object[] |
getParameters()
Get the parameters to the log message. |
java.lang.String |
getSourceClassName()
|
java.lang.String |
getSourceMethodName()
|
java.lang.Throwable |
getThrown()
Get any throwable associated with the log record. |
void |
setLevel(LogLevel level)
Set the logging message level, for example Level.SEVERE. |
void |
setLoggerName(java.lang.String name)
Set the source Logger name. |
void |
setMessage(java.lang.String message)
Set the "raw" log message, before localization or formatting. |
void |
setMillis(long millis)
Set event time. |
void |
setParameters(java.lang.Object[] parameters)
Set the parameters to the log message. |
void |
setSourceClassName(java.lang.String sourceClassName)
Set the name of the class that (allegedly) issued the logging request. |
void |
setSourceMethodName(java.lang.String sourceMethodName)
|
void |
setThrown(java.lang.Throwable thrown)
Set a throwable associated with the log event. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LogRecord(LogLevel level,
java.lang.String msg)
The sequence property will be initialized with a new unique value. These sequence values are allocated in increasing order within a VM.
The millis property will be initialized to the current time.
The thread ID property will be initialized with a unique ID for the current thread.
All other properties will be initialized to "null".
level - a logging level valuemsg - the raw non-localized logging message| Method Detail |
public java.lang.Object[] getParameters()
public void setParameters(java.lang.Object[] parameters)
parameters - the log message parameters.public java.lang.String getLoggerName()
public java.lang.String getLevelName()
public void setLoggerName(java.lang.String name)
name - the source logger name (may be null)public LogLevel getLevel()
public void setLevel(LogLevel level)
level - the logging message levelpublic java.lang.String getSourceClassName()
public void setSourceClassName(java.lang.String sourceClassName)
sourceClassName - the source class namepublic java.lang.String getSourceMethodName()
public void setSourceMethodName(java.lang.String sourceMethodName)
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message - the raw message stringpublic long getMillis()
public void setMillis(long millis)
millis - event time in millis since 1970public java.lang.Throwable getThrown()
If the event involved an exception, this will be the exception object. Otherwise null.
public void setThrown(java.lang.Throwable thrown)
thrown - a throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||