Package org.rspeer.commons.logging
Class WrappedLogRecord
- java.lang.Object
-
- java.util.logging.LogRecord
-
- org.rspeer.commons.logging.WrappedLogRecord
-
- All Implemented Interfaces:
Serializable
public class WrappedLogRecord extends LogRecord
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WrappedLogRecord(Level level, String msg)
Construct a LogRecord with the given level and message values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
getColor()
void
setColor(Color color)
String
toString()
-
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
-
-
-
-
Constructor Detail
-
WrappedLogRecord
public WrappedLogRecord(Level level, String msg)
Construct a LogRecord with the given level and message values.The sequence property will be initialized with a new unique value. These sequence values are allocated in increasing order within a VM.
Since JDK 9, the event time is represented by an
Instant
. The instant property will be initialized to the current instant, using the best available clock on the system.The thread ID property will be initialized with a unique ID for the current thread.
All other properties will be initialized to "null".
- Parameters:
level
- a logging level valuemsg
- the raw non-localized logging message (may be null)- See Also:
Clock.systemUTC()
-
-