|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A log record for the log service. This record represents a mutable set of attributes. The record might be mutated or silently dropped by the framework.
A log record consists of: A optional Level (severity) and Type of the record,
an textual overview, an optional Throwable triggering the record, and an optional set of string
properties related to the record.
LogHandle| Method Summary | |
java.lang.String |
getId()
Get record id. |
Level |
getLevel()
Get the severity level of the record. |
java.util.Properties |
getProperties()
Get a set of record properties. |
java.lang.String |
getText()
Get the record overview message. |
java.lang.Throwable |
getThrowable()
Get the throwable that triggered this record. |
Type |
getType()
Get the type of the record. |
void |
setId(java.lang.String id)
Set the record. |
void |
setLevel(Level level)
Set the severity level. |
void |
setText(java.lang.String msg)
Set the record overview. |
void |
setThrowable(java.lang.Throwable error)
Set throwable that caused the record. |
void |
setType(Type type)
Set the record type. |
| Method Detail |
public Type getType()
Type.UNKNOWN.
- Returns:
- A Record type object, may be null
public void setType(Type type)
type - Record type object, may be nullpublic java.lang.String getId()
public void setId(java.lang.String id)
id - Record idpublic Level getLevel()
public void setLevel(Level level)
level - Severity level object, may be nullpublic java.lang.String getText()
public void setText(java.lang.String msg)
msg - Record overview messagepublic java.lang.Throwable getThrowable()
public void setThrowable(java.lang.Throwable error)
error - A throwable that triggered the recordpublic java.util.Properties getProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||