Package oracle.jdbc.diagnostics
Class OracleLogRecord
- java.lang.Object
-
- java.util.logging.LogRecord
-
- oracle.jdbc.diagnostics.OracleLogRecord
-
- All Implemented Interfaces:
java.io.Serializable
public class OracleLogRecord extends java.util.logging.LogRecord
An extendedLogRecord
, which provides additional information captured in the trace records.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OracleLogRecord(java.util.logging.Level level, SecurityLabel label, ImmutableTraceAttributes attributes, java.lang.String msg)
Create an OracleLogRecord with a Level and a set of ConnectionAttributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityLabel
getSecurityLabel()
Get theSecurityLabel
of this logging event.java.lang.String
getThreadName()
Get the thread name of this logging event.TraceAttributes
getTraceAttributes()
void
setThreadName(java.lang.String threadName)
Set the thread name of this logging event.void
setTraceAttributes(ImmutableTraceAttributes attributes)
-
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
-
OracleLogRecord
public OracleLogRecord(java.util.logging.Level level, SecurityLabel label, ImmutableTraceAttributes attributes, java.lang.String msg)
Create an OracleLogRecord with a Level and a set of ConnectionAttributes.- Parameters:
level
-attributes
-
-
-
Method Detail
-
setTraceAttributes
public void setTraceAttributes(ImmutableTraceAttributes attributes)
-
getTraceAttributes
public TraceAttributes getTraceAttributes()
-
setThreadName
public void setThreadName(java.lang.String threadName)
Set the thread name of this logging event.
-
getThreadName
public java.lang.String getThreadName()
Get the thread name of this logging event.
-
getSecurityLabel
public SecurityLabel getSecurityLabel()
Get theSecurityLabel
of this logging event.
-
-