|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.management.web.logging.LogRecord
public class LogRecord
Log entry serializable to XML. Based on common set of LogRecord and
org.apache.log4j.spi.LoggingEvent attributes.
LogRecord are never null; if some attributes are not set (e.g. logger name, or rendered cause taken from Throwable) empty strings are returned.
| Constructor Summary | |
|---|---|
LogRecord()
|
|
LogRecord(LogRecord copy)
|
|
LogRecord(String id)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
static LogRecord |
fromJUL(LogRecord julRecord)
Creates this object from JUL LogRecord. |
Date |
getEventTimestamp()
|
String |
getId()
|
LogLevel |
getLevel()
|
String |
getLoggerName()
|
String |
getMessage()
Formatted message with parameters filled in. |
String |
getThreadName()
|
String |
getThrowable()
Full stack trace of Throwable associated with log record. |
int |
hashCode()
|
void |
setEventTimestamp(Date eventTimestamp)
|
void |
setLevel(LogLevel level)
|
void |
setLoggerName(String loggerName)
|
void |
setMessage(String renderedMessage)
|
void |
setThreadName(String threadName)
|
void |
setThrowable(String throwable)
|
void |
setThrowable(Throwable thr)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LogRecord()
public LogRecord(String id)
public LogRecord(LogRecord copy)
| Method Detail |
|---|
public static LogRecord fromJUL(LogRecord julRecord)
message is formatted with
parameters using MessageFormat, attached
throwable has full stack trace dumped, and log levels
are mapped as specified in LogRecord.
julRecord - log record to convert.
public String getId()
public Date getEventTimestamp()
public void setEventTimestamp(Date eventTimestamp)
public LogLevel getLevel()
public void setLevel(LogLevel level)
public String getMessage()
public void setMessage(String renderedMessage)
public String getLoggerName()
public void setLoggerName(String loggerName)
public String getThreadName()
public void setThreadName(String threadName)
public String getThrowable()
Throwable associated with log record.
public void setThrowable(String throwable)
public void setThrowable(Throwable thr)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||