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 BooleanfastLogging
-
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
public static Boolean fastLogging
-
-
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
-
-