| Modifier and Type | Class and Description |
|---|---|
| public static enum | ExtLogRecord.
The format style to use. |
| Modifier and Type | Field and Description |
|---|---|
| private transient boolean | |
| private ExtLogRecord. | |
| private String | |
| private final transient String | |
| private long | |
| private Object | |
| private FastCopyHashMap | |
| private String | |
| private long | |
| private String | |
| private static final long | |
| private String | |
| private int | |
| private String | |
| private String | |
| private static final MethodHandle | |
| private static final MethodHandle | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | ExtLogRecord(final Level
a logging level value level, final String the raw non-localized logging message (may be null) msg, final String the name of the logger class loggerClassName)Construct a new instance. |
| public | ExtLogRecord(final Level
a logging level value level, final String the raw non-localized logging message (may be null) msg, final ExtLogRecord.the parameter format style to use formatStyle,the name of the logger class loggerClassName)Construct a new instance. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | calculateCaller()
Find the first stack frame below the call to the logger, and populate the log record with that information. |
| public void | copyAll()
Copy all fields and prepare this object to be passed to another thread or to be serialized. |
| public void | |
| public void | |
| public ExtLogRecord. | |
| public String | Returns: the formatted log record
Deprecated
The formatter should normally be used to format the message contents.
Get the fully formatted log record, with resources resolved and parameters applied. |
| public String | Returns: the host name of the record, if knownGet the host name of the record, if known. |
| public String | Returns: the class nameGet the class name of the logger which created this record. |
| public long | getLongThreadID()
Overrides java. Get a thread identifier for the thread where message originated This is a thread identifier within the Java VM and may or may not map to any operating system ID. |
| public Object | |
| public String | |
| public Map | |
| public String | |
| public long | Returns: the process ID of the record, or -1 if not knownGet the process ID of the record, if known. |
| public String | Returns: the process name of the record, if knownGet the process name of the record, if known. |
| public String | |
| public String | getSourceClassName()
Overrides java. Get the name of the class that (allegedly) issued the logging request. |
| public String | |
| public int | |
| public String | getSourceMethodName()
Overrides java. Get the name of the method that (allegedly) issued the logging request. |
| public String | Returns: the name of the module that initiated the logging requestGet the name of the module that initiated the logging request, if known. |
| public String | Returns: the version of the module that initiated the logging requestGet the version of the module that initiated the logging request, if known. |
| public String | |
| public String | |
| private void | readObject(ObjectInputStream
the ois)ObjectInputStream to read fromHides java. Initializes the LogRecord from deserialized data. |
| public String | |
| public void | |
| public ExtLogRecord | setLongThreadID(final long
the thread ID id)Overrides java. Set an identifier for the thread where the message originated. |
| public void | |
| public void | |
| public void | setMessage(final String
the new raw message message)Overrides java. Set the raw message. |
| public void | setMessage(final String
the new raw message message, final ExtLogRecord.the format style to use formatStyleSet the raw message. |
| public void | |
| public void | setParameters(final Object[]
the log message parameters. (may be null) parameters)Overrides java. Set the parameters to the log message. |
| public void | |
| public void | setProcessName(final String
the process name of the record processName)Set the process name of the record. |
| public void | setResourceBundle(final ResourceBundle
localization bundle (may be null) bundle)Overrides java. Set the localization resource bundle. |
| public void | setResourceBundleName(final String
localization bundle name (may be null) name)Overrides java. Set the localization resource bundle name. |
| public void | setSourceClassName(final String
the source class name (may be null) sourceClassName)Overrides java. Set the name of the class that (allegedly) issued the logging request. |
| public void | setSourceFileName(final String
the source file name sourceFileName)Set the source file name for this log record. |
| public void | setSourceLineNumber(final int
the source line number sourceLineNumber)Set the source line number for this log record. |
| public void | setSourceMethodName(final String
the source method name (may be null) sourceMethodName)Overrides java. Set the name of the method that (allegedly) issued the logging request. |
| public void | setSourceModuleName(final String
the source module name sourceModuleName)Set the source module name of this record. |
| public void | setSourceModuleVersion(final String
the source module version sourceModuleVersion)Set the source module version of this record. |
| public void | setThreadID(final int
the thread ID threadID)Overrides java. Set an identifier for the thread where the message originated. |
| public void | |
| pack-priv void | |
| pack-priv long | |
| pack-priv void | |
| public static ExtLogRecord | |
| private void | writeObject(ObjectOutputStream
the oos)ObjectOutputStream to write toHides java.
|
| calculateCaller | back to summary |
|---|---|
| private transient boolean calculateCaller | |
| formatStyle | back to summary |
|---|---|
| private ExtLogRecord. | |
| hostName | back to summary |
|---|---|
| private String hostName | |
| loggerClassName | back to summary |
|---|---|
| private final transient String loggerClassName | |
| longThreadID | back to summary |
|---|---|
| private long longThreadID | |
| marker | back to summary |
|---|---|
| private Object marker | |
| mdcCopy | back to summary |
|---|---|
| private FastCopyHashMap<String, Object> mdcCopy | |
| ndc | back to summary |
|---|---|
| private String ndc | |
| processId | back to summary |
|---|---|
| private long processId | |
| processName | back to summary |
|---|---|
| private String processName | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| sourceFileName | back to summary |
|---|---|
| private String sourceFileName | |
| sourceLineNumber | back to summary |
|---|---|
| private int sourceLineNumber | |
| sourceModuleName | back to summary |
|---|---|
| private String sourceModuleName | |
| sourceModuleVersion | back to summary |
|---|---|
| private String sourceModuleVersion | |
| superGetLongThreadID | back to summary |
|---|---|
| private static final MethodHandle superGetLongThreadID | |
| superSetLongThreadID | back to summary |
|---|---|
| private static final MethodHandle superSetLongThreadID | |
| threadName | back to summary |
|---|---|
| private String threadName | |
| ExtLogRecord | back to summary |
|---|---|
| public ExtLogRecord(final Level level, final String msg, final String loggerClassName) Construct a new instance. Grabs the current NDC immediately. MDC is deferred. | |
| ExtLogRecord | back to summary |
|---|---|
| public ExtLogRecord(final Level level, final String msg, final ExtLogRecord. Construct a new instance. Grabs the current NDC immediately. MDC is deferred.
| |
| ExtLogRecord | back to summary |
|---|---|
| public ExtLogRecord(final ExtLogRecord original) Make a copy of a log record.
| |
| calculateCaller | back to summary |
|---|---|
| private void calculateCaller() Find the first stack frame below the call to the logger, and populate the log record with that information. | |
| copyAll | back to summary |
|---|---|
| public void copyAll() Copy all fields and prepare this object to be passed to another thread or to be serialized. Calling this method more than once has no additional effect and will not incur extra copies. | |
| copyMdc | back to summary |
|---|---|
| public void copyMdc() Copy the MDC. Call this method before passing this log record to another thread. Calling this method more than once has no additional effect and will not incur extra copies. | |
| disableCallerCalculation | back to summary |
|---|---|
| public void disableCallerCalculation() Disable caller calculation for this record. If the caller has already been calculated, leave it; otherwise
set the caller to | |
| getFormatStyle | back to summary |
|---|---|
| public ExtLogRecord. Get the format style for the record.
| |
| getFormattedMessage | back to summary |
|---|---|
| public String getFormattedMessage()
Deprecated The formatter should normally be used to format the message contents. Get the fully formatted log record, with resources resolved and parameters applied.
| |
| getHostName | back to summary |
|---|---|
| public String getHostName() Get the host name of the record, if known.
| |
| getLoggerClassName | back to summary |
|---|---|
| public String getLoggerClassName() Get the class name of the logger which created this record.
| |
| getLongThreadID | back to summary |
|---|---|
| public long getLongThreadID() Overrides java. Doc from java. Get a thread identifier for the thread where message originated This is a thread identifier within the Java VM and may or may not map to any operating system ID.
| |
| getMarker | back to summary |
|---|---|
| public Object getMarker() | |
| getMdc | back to summary |
|---|---|
| public String getMdc(String key) Get the value of an MDC property. | |
| getMdcCopy | back to summary |
|---|---|
| public Map Get a copy of all the MDC properties for this log record. If the MDC has not yet been copied, this method will copy it. | |
| getNdc | back to summary |
|---|---|
| public String getNdc() Get the NDC for this log record.
| |
| getProcessId | back to summary |
|---|---|
| public long getProcessId() Get the process ID of the record, if known.
| |
| getProcessName | back to summary |
|---|---|
| public String getProcessName() Get the process name of the record, if known.
| |
| getResourceKey | back to summary |
|---|---|
| public String getResourceKey() Get the resource key, if any. If the log message is not localized, then the key is
| |
| getSourceClassName | back to summary |
|---|---|
| public String getSourceClassName() Overrides java. Doc from java. Get the name of the class that (allegedly) issued the logging request. Note that this sourceClassName is not verified and may be spoofed. This information may either have been provided as part of the logging call, or it may have been inferred automatically by the logging framework. In the latter case, the information may only be approximate and may in fact describe an earlier call on the stack frame. May be null if no information could be obtained.
| |
| getSourceFileName | back to summary |
|---|---|
| public String getSourceFileName() Get the source file name for this log record.
Note that this file name is not verified and may be spoofed. This information may either have been
provided as part of the logging call, or it may have been inferred automatically by the logging framework. In the
latter case, the information may only be approximate and may in fact describe an earlier call on the stack frame.
May be
| |
| getSourceLineNumber | back to summary |
|---|---|
| public int getSourceLineNumber() Get the source line number for this log record. Note that this line number is not verified and may be spoofed. This information may either have been provided as part of the logging call, or it may have been inferred automatically by the logging framework. In the latter case, the information may only be approximate and may in fact describe an earlier call on the stack frame. May be -1 if no information could be obtained.
| |
| getSourceMethodName | back to summary |
|---|---|
| public String getSourceMethodName() Overrides java. Doc from java. Get the name of the method that (allegedly) issued the logging request. Note that this sourceMethodName is not verified and may be spoofed. This information may either have been provided as part of the logging call, or it may have been inferred automatically by the logging framework. In the latter case, the information may only be approximate and may in fact describe an earlier call on the stack frame. May be null if no information could be obtained.
| |
| getSourceModuleName | back to summary |
|---|---|
| public String getSourceModuleName() Get the name of the module that initiated the logging request, if known.
| |
| getSourceModuleVersion | back to summary |
|---|---|
| public String getSourceModuleVersion() Get the version of the module that initiated the logging request, if known.
| |
| getThreadName | back to summary |
|---|---|
| public String getThreadName() Get the thread name of this logging event.
| |
| putMdc | back to summary |
|---|---|
| public String putMdc(String key, String value) Change an MDC value on this record. If the MDC has not yet been copied, this method will copy it. | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException Hides java. Doc from java. Initializes the LogRecord from deserialized data.
writeObject for a description of the serial form.
| |
| removeMdc | back to summary |
|---|---|
| public String removeMdc(String key) Remove an MDC value on this record. If the MDC has not yet been copied, this method will copy it. | |
| setHostName | back to summary |
|---|---|
| public void setHostName(final String hostName) Set the host name of the record.
| |
| setLongThreadID | back to summary |
|---|---|
| public ExtLogRecord setLongThreadID(final long id) Overrides java. Doc from java. Set an identifier for the thread where the message originated.
| |
| setMarker | back to summary |
|---|---|
| public void setMarker(Object marker) Set the marker for this event. Markers are used mostly by SLF4J and Log4j. | |
| setMdc | back to summary |
|---|---|
| public void setMdc(Map<?, ?> sourceMap) Create a new MDC using a copy of the source map.
| |
| setMessage | back to summary |
|---|---|
| public void setMessage(final String message) Overrides java. Set the raw message. Any cached formatted message is discarded. The parameter format is set to be
| |
| setMessage | back to summary |
|---|---|
| public void setMessage(final String message, final ExtLogRecord. Set the raw message. Any cached formatted message is discarded. The parameter format is set according to the given argument.
| |
| setNdc | back to summary |
|---|---|
| public void setNdc(String value) Change the NDC for this log record.
| |
| setParameters | back to summary |
|---|---|
| public void setParameters(final Object[] parameters) Overrides java. Set the parameters to the log message. Any cached formatted message is discarded.
| |
| setProcessId | back to summary |
|---|---|
| public void setProcessId(final long processId) Set the process ID of the record.
| |
| setProcessName | back to summary |
|---|---|
| public void setProcessName(final String processName) Set the process name of the record.
| |
| setResourceBundle | back to summary |
|---|---|
| public void setResourceBundle(final ResourceBundle bundle) Overrides java. Set the localization resource bundle. Any cached formatted message is discarded.
| |
| setResourceBundleName | back to summary |
|---|---|
| public void setResourceBundleName(final String name) Overrides java. Set the localization resource bundle name. Any cached formatted message is discarded.
| |
| setSourceClassName | back to summary |
|---|---|
| public void setSourceClassName(final String sourceClassName) Overrides java. Doc from java. Set the name of the class that (allegedly) issued the logging request.
| |
| setSourceFileName | back to summary |
|---|---|
| public void setSourceFileName(final String sourceFileName) Set the source file name for this log record.
| |
| setSourceLineNumber | back to summary |
|---|---|
| public void setSourceLineNumber(final int sourceLineNumber) Set the source line number for this log record.
| |
| setSourceMethodName | back to summary |
|---|---|
| public void setSourceMethodName(final String sourceMethodName) Overrides java. Doc from java. Set the name of the method that (allegedly) issued the logging request.
| |
| setSourceModuleName | back to summary |
|---|---|
| public void setSourceModuleName(final String sourceModuleName) Set the source module name of this record.
| |
| setSourceModuleVersion | back to summary |
|---|---|
| public void setSourceModuleVersion(final String sourceModuleVersion) Set the source module version of this record.
| |
| setThreadID | back to summary |
|---|---|
| public void setThreadID(final int threadID) Overrides java. Doc from java. Set an identifier for the thread where the message originated.
| |
| setThreadName | back to summary |
|---|---|
| public void setThreadName(final String threadName) Set the thread name of this logging event.
| |
| setUnknownCaller | back to summary |
|---|---|
| pack-priv void setUnknownCaller() | |
| superGetLongThreadID | back to summary |
|---|---|
| pack-priv long superGetLongThreadID() | |
| superSetLongThreadID | back to summary |
|---|---|
| pack-priv void superSetLongThreadID(final long id) | |
| wrap | back to summary |
|---|---|
| public static ExtLogRecord wrap(LogRecord rec) Wrap a JDK log record. If the target record is already an
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream oos) throws IOException Hides java.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ExtLogRecord. | MESSAGE_FORMAT
Format the message using the |
| public static final ExtLogRecord. | NO_FORMAT
Do not format the message; parameters are ignored. |
| public static final ExtLogRecord. | PRINTF
Format the message using the |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ExtLogRecord. | |
| public static ExtLogRecord. |
| MESSAGE_FORMAT | back to summary |
|---|---|
| public static final ExtLogRecord. Format the message using the | |
| NO_FORMAT | back to summary |
|---|---|
| public static final ExtLogRecord. Do not format the message; parameters are ignored. | |
| PRINTF | back to summary |
|---|---|
| public static final ExtLogRecord. Format the message using the | |
| FormatStyle | back to summary |
|---|---|
| private FormatStyle() | |
| valueOf | back to summary |
|---|---|
| public static ExtLogRecord. | |
| values | back to summary |
|---|---|
| public static ExtLogRecord. | |