Package com.sun.common.util.logging
Class GFLogRecord
- java.lang.Object
-
- java.util.logging.LogRecord
-
- com.sun.common.util.logging.GFLogRecord
-
- All Implemented Interfaces:
Serializable
public class GFLogRecord extends LogRecord
This class provides additional attributes not supported by JUL LogRecord- Author:
- rinamdar
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BooleanfastLoggingDeprecated, for removal: This API element is subject to removal in a future version.static AtomicBooleanfastLoggingAtomic
-
Constructor Summary
Constructors Constructor Description GFLogRecord(Level level, String msg)GFLogRecord(LogRecord record)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetThreadName()voidsetThreadName(String threadName)static GFLogRecordwrap(LogRecord record, boolean setThreadName)wrap log record withGFLogRecordif not already if setThreadName is true, sets thread name to current-
Methods inherited from class java.util.logging.LogRecord
getInstant, getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setInstant, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown
-
-
-
-
Field Detail
-
fastLogging
@Deprecated(forRemoval=true, since="6.21.0") public static Boolean fastLogging
Deprecated, for removal: This API element is subject to removal in a future version.The deprecated fastLogging attribute DO NOT USE! Retained for semantic versioning. Replaced byfastLoggingAtomic.
-
fastLoggingAtomic
public static final AtomicBoolean fastLoggingAtomic
-
-
Method Detail
-
getThreadName
public String getThreadName()
-
setThreadName
public void setThreadName(String threadName)
-
wrap
public static GFLogRecord wrap(LogRecord record, boolean setThreadName)
wrap log record withGFLogRecordif not already if setThreadName is true, sets thread name to current- Parameters:
record-setThreadName-- Returns:
- wrapped record
-
-