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 Boolean
fastLogging
-
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 String
getThreadName()
void
setThreadName(String threadName)
static GFLogRecord
wrap(LogRecord record, boolean setThreadName)
wrap log record withGFLogRecord
if 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 withGFLogRecord
if not already if setThreadName is true, sets thread name to current- Parameters:
record
-setThreadName
-- Returns:
- wrapped record
-
-