public class ELFormatter.ELFormatterLogRecord
extends java.lang.Object
Constructor and Description |
---|
ELFormatterLogRecord() |
Modifier and Type | Method and Description |
---|---|
java.util.logging.Level |
getLevel()
The logging message level, for example Level.INFO.
|
java.lang.String |
getLoggerName()
The source Logger's name.
|
java.lang.String |
getMessage()
The "formatted" log message, after localization, substitution of
parameters, and the inclusion of an exception stack trace if applicable.
|
long |
getMillis()
The time of the logging event, in milliseconds since 1970.
|
java.lang.String |
getName()
The source Logger's name.
|
java.lang.Object[] |
getParameters() |
java.lang.String |
getRawMessage()
The "raw" log message, before localization or substitution
of parameters.
|
java.util.ResourceBundle |
getResourceBundle()
The resource bundle for localization.
|
java.lang.String |
getResourceBundleName()
The name of resource bundle for localization.
|
long |
getSequenceNumber()
The sequence number, normally assigned in the constructor of LogRecord.
|
java.lang.String |
getShortName()
The last component of the source Logger's name.
|
java.lang.String |
getShortSourceClassName()
The last component of the name (everthing after the last `.') of the
class that issued the logging request.
|
java.lang.String |
getSourceClassName()
The name of the class that issued the logging request.
|
java.lang.String |
getSourceMethodName()
The name of the method that issued the logging request.
|
int |
getThreadID()
An identifier for the thread where the message originated.
|
java.lang.Throwable |
getThrown()
The throwable associated with the log record, if one was associated.
|
public java.lang.String getMessage()
During formatting, if the source logger has a localization ResourceBundle and if that ResourceBundle has an entry for this message string, then the message string is replaced with the localized value.
If the message has parameters, java.text.MessageFormat is used to format the message with the parameters.
If the log record has an associated exception, the stack trace is appended to the log message.
MessageFormat
,
java.lang.Throwable.printStackTrace()
public java.lang.String getName()
public java.lang.String getLoggerName()
public java.lang.String getShortName()
public java.util.logging.Level getLevel()
Level
public long getMillis()
public int getThreadID()
public java.lang.Throwable getThrown()
public long getSequenceNumber()
public java.lang.String getSourceClassName()
public java.lang.String getShortSourceClassName()
public java.lang.String getSourceMethodName()
public java.lang.String getRawMessage()
This returned message will be either the final text, text containing parameter substitution "format elements" (like `{0}') for use by java.text.MessageFormat, or a localization key.
MessageFormat
public java.util.ResourceBundle getResourceBundle()
public java.lang.String getResourceBundleName()
public java.lang.Object[] getParameters()