|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.LogRecord
org.x4juli.global.components.AbstractExtendedLogRecord
An abstract class defining the missing methods for full featured logging.
Specifies lazy load of an extend java.util.logging.LogRecord.
Information are created just when they are needed and just once for each
object.
| Field Summary | |
protected java.lang.String |
cachedFormattedMessage
Represents the last formatted message. |
private LocationInfo |
locationInfo
Location information for the caller. |
private static long |
START_TIME
|
private ThrowableInformation |
throwableInfo
This variable contains information about this event's throwable. |
| Fields inherited from class java.util.logging.LogRecord |
|
| Constructor Summary | |
AbstractExtendedLogRecord(java.util.logging.Level level,
java.lang.String msg)
Constructs a new ExtendedLogRecord. |
|
| Method Summary | |
java.lang.String |
getFormattedMessage()
Returns the cached formatted message. |
LocationInfo |
getLocationInformation()
Provide extended information about the caller's location. These information should respect the Logger class or any subclasses. (Make use of the correct, corresponding FQCN). |
long |
getStartTime()
Provide the time since start of logging. |
ThrowableInformation |
getThrowableInformation()
Provide extended information about the attached throwable. Returns null, if there was no throwable in the LogRecord attached. |
void |
setFormattedMessage(java.lang.String formattedMessage)
Setup the cache for the formatted message. |
java.lang.String |
toString()
|
| Methods inherited from class java.util.logging.LogRecord |
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.x4juli.global.spi.ExtendedLogRecord |
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown |
| Field Detail |
private static final long START_TIME
protected java.lang.String cachedFormattedMessage
private ThrowableInformation throwableInfo
private LocationInfo locationInfo
| Constructor Detail |
public AbstractExtendedLogRecord(java.util.logging.Level level,
java.lang.String msg)
level - to log.msg - to format and log.| Method Detail |
public ThrowableInformation getThrowableInformation()
getThrowableInformation in interface ExtendedLogRecordpublic LocationInfo getLocationInformation()
getLocationInformation in interface ExtendedLogRecordpublic long getStartTime()
getStartTime in interface ExtendedLogRecordpublic java.lang.String toString()
public void setFormattedMessage(java.lang.String formattedMessage)
setFormattedMessage in interface ExtendedLogRecordformattedMessage - current state of the formatted message.public java.lang.String getFormattedMessage()
getFormattedMessage in interface ExtendedLogRecord
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||