Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.2.0)

E17486-03


oracle.adf.share.logging.internal.diagnostic
Class ADFLogRecord

java.lang.Object
  extended by java.util.logging.LogRecord
      extended by oracle.adf.share.logging.internal.diagnostic.ADFLogRecord

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JBODiagnosticLogRecord

public class ADFLogRecord
extends java.util.logging.LogRecord

ADF diagnostic logging log record

See Also:
Serialized Form

Constructor Summary
ADFLogRecord(java.lang.Class logger, java.util.logging.Level level, java.lang.String msg)
          Constructor.
ADFLogRecord(java.util.logging.Level level, java.lang.String msg)
          Constructor

 

Method Summary
 java.lang.String getSourceClassName()
          Get source class name
 java.lang.String getSourceMethodName()
          Get source method name
 java.lang.Throwable getThrown()
           
 void setSourceClassName(java.lang.String sourceClassName)
          Set source class name
 void setSourceMethodName(java.lang.String sourceMethodName)
          Set source method name
 void setThrown(java.lang.Throwable thrown)
           

 

Methods inherited from class java.util.logging.LogRecord
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getThreadID, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setThreadID

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ADFLogRecord

public ADFLogRecord(java.util.logging.Level level,
                    java.lang.String msg)
Constructor
Parameters:
level - the log record level
msg - the message to be logged

ADFLogRecord

public ADFLogRecord(java.lang.Class logger,
                    java.util.logging.Level level,
                    java.lang.String msg)
Constructor.

This constructor uses the provided logger to determine what class to look for when walking the stack to determine the SRC_CLASS and SRC_METHOD attributes.

This allows ADFLogger to be subclassed and retain the ability to determine the real source class and method.

Parameters:
logger - the logger creating the log record.
level - the log record level
msg - the message to be logged

Method Detail

getSourceClassName

public java.lang.String getSourceClassName()
Get source class name
Overrides:
getSourceClassName in class java.util.logging.LogRecord

setSourceClassName

public void setSourceClassName(java.lang.String sourceClassName)
Set source class name
Overrides:
setSourceClassName in class java.util.logging.LogRecord
Parameters:
sourceClassName - source class name

getSourceMethodName

public java.lang.String getSourceMethodName()
Get source method name
Overrides:
getSourceMethodName in class java.util.logging.LogRecord

setSourceMethodName

public void setSourceMethodName(java.lang.String sourceMethodName)
Set source method name
Overrides:
setSourceMethodName in class java.util.logging.LogRecord
Parameters:
sourceMethodName - source method name

setThrown

public void setThrown(java.lang.Throwable thrown)
Overrides:
setThrown in class java.util.logging.LogRecord

getThrown

public java.lang.Throwable getThrown()
Overrides:
getThrown in class java.util.logging.LogRecord

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.2.0)

E17486-03


Copyright © 1997, 2012, Oracle. All rights reserved.