|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.adfnmc.java.util.logging.LogRecord
public class LogRecord
A LogRecord
object represents a logging request. It is passed
between the logging framework and individual logging handlers. Client
applications should not modify a LogRecord
object that has
been passed into the logging framework.
The LogRecord
class will infer the source method name and
source class name the first time they are accessed if the client application
didn't specify them explicitly. This automatic inference is based on the
analysis of the call stack and is not guaranteed to be precise. Client
applications should force the initialization of these two fields by calling
getSourceClassName
or getSourceMethodName
if
they expect to use them after passing the LogRecord
object to
another thread or transmitting it over RMI.
Constructor Summary | |
---|---|
LogRecord(Level level,
java.lang.String msg)
Constructs a LogRecord object using the supplied the
logging level and message. |
Method Summary | |
---|---|
Level |
getLevel()
Gets the logging level. |
java.lang.String |
getLoggerName()
Gets the name of the logger. |
java.lang.String |
getMessage()
Gets the raw message. |
long |
getMillis()
Gets the time that the event occurred, in milliseconds since 1970. |
java.lang.Object[] |
getParameters()
Gets the parameters. |
java.lang.String |
getResourceBundleName()
Gets the name of the resource bundle. |
long |
getSequenceNumber()
Gets the sequence number. |
java.lang.String |
getSourceClassName()
Gets the name of the class that issued the logging call. |
java.lang.String |
getSourceMethodName()
Gets the name of the method that issued the logging call. |
int |
getThreadID()
Gets the ID of the thread originating the message. |
java.lang.Throwable |
getThrown()
Gets the Throwable object associated with this log record. |
void |
setLevel(Level level)
Sets the logging level. |
void |
setLoggerName(java.lang.String loggerName)
Sets the name of the logger. |
void |
setMessage(java.lang.String message)
Sets the raw message. |
void |
setMillis(long millis)
Sets the time that the event occurred, in milliseconds since 1970. |
void |
setParameters(java.lang.Object[] parameters)
Sets the parameters. |
void |
setResourceBundleName(java.lang.String resourceBundleName)
Sets the name of the resource bundle. |
void |
setSequenceNumber(long sequenceNumber)
Sets the sequence number. |
void |
setSourceClassName(java.lang.String sourceClassName)
Sets the name of the class that issued the logging call. |
void |
setSourceMethodName(java.lang.String sourceMethodName)
Sets the name of the method that issued the logging call. |
void |
setThreadID(int threadID)
Sets the ID of the thread originating the message. |
void |
setThrown(java.lang.Throwable thrown)
Sets the Throwable object associated with this log record. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogRecord(Level level, java.lang.String msg)
LogRecord
object using the supplied the
logging level and message. The millis property is set to the current
time. The sequence property is set to a new unique value, allocated in
increasing order within a VM. The thread ID is set to a unique value for
the current thread. All other properties are set to null
.
level
- the logging level which may not be nullmsg
- the raw messageMethod Detail |
---|
public Level getLevel()
public void setLevel(Level level)
level
- the level to setpublic java.lang.String getLoggerName()
public void setLoggerName(java.lang.String loggerName)
loggerName
- the logger name to setpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the raw message to setpublic long getMillis()
public void setMillis(long millis)
millis
- the time that the event occurred, in milliseconds since 1970public java.lang.Object[] getParameters()
public void setParameters(java.lang.Object[] parameters)
parameters
- the array of parameters to setpublic java.lang.String getResourceBundleName()
public void setResourceBundleName(java.lang.String resourceBundleName)
resourceBundleName
- the name of the resource bundle to setpublic long getSequenceNumber()
public void setSequenceNumber(long sequenceNumber)
sequenceNumber
- the sequence number to setpublic java.lang.String getSourceClassName()
public void setSourceClassName(java.lang.String sourceClassName)
sourceClassName
- the name of the class that issued the logging callpublic java.lang.String getSourceMethodName()
public void setSourceMethodName(java.lang.String sourceMethodName)
sourceMethodName
- the name of the method that issued the logging callpublic int getThreadID()
public void setThreadID(int threadID)
threadID
- the ID of the thread originating the messagepublic java.lang.Throwable getThrown()
Throwable
object associated with this log record.
Throwable
object associated with this log
recordpublic void setThrown(java.lang.Throwable thrown)
Throwable
object associated with this log record.
thrown
- the Throwable
object associated with this log
record
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |