|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.toplink.logging.AbstractSessionLog
oracle.toplink.logging.JavaLog
public class JavaLog
This is a wrapper class for java.util.logging. It is used when messages need to be logged through java.util.logging.
SessionLog, AbstractSessionLog, SessionLogEntry, Session| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_TOPLINK_NAMESPACE |
static java.lang.String |
SESSION_TOPLINK_NAMESPACE |
static java.lang.String |
TOPLINK_NAMESPACEStores the default session name in case there is the session name is missing. |
| Fields inherited from interface oracle.toplink.logging.SessionLog |
|---|
ALL, ALL_LABEL, CONFIG, CONFIG_LABEL, FINE, FINE_LABEL, FINER, FINER_LABEL, FINEST, FINEST_LABEL, INFO, INFO_LABEL, OFF_LABEL, SEVERE, SEVERE_LABEL, WARNING, WARNING_LABEL |
| Fields inherited from interface oracle.toplink.sessions.SessionLog |
|---|
CACHE, CONNECTION, DMS, EJB, EJB_OR_METADATA, EVENT, loggerCatagories, OFF, PROPAGATION, PROPERTIES, QUERY, SEQUENCING, SERVER, SQL, TRANSACTION, WEAVER |
| Method Summary | |
|---|---|
int |
getLevel(java.lang.String category)Return the effective log level for the name space extracted from session and category. |
void |
log(SessionLogEntry entry)Log a SessionLogEntry |
void |
setLevel(int level, java.lang.String category)Set the log level to a logger with name space extracted from the given category. |
void |
setSession(Session session)Set the session and session namespace. |
void |
setWriter(java.io.OutputStream fileOutputStream)Set the output stream that will receive the formatted log entries. |
boolean |
shouldLog(int level, java.lang.String category)Check if a message of the given level would actually be logged by the logger with name space built from the given session and category. |
void |
throwing(java.lang.Throwable throwable)Log a throwable. |
| Methods inherited from class oracle.toplink.logging.AbstractSessionLog |
|---|
config, fine, finer, finest, getDateFormat, getDefaultLoggingLevel, getLevel, getLevelString, getLog, getSession, getWriter, info, log, log, log, log, log, log, log, logThrowable, setDateFormat, setLevel, setLog, setShouldLogDebug, setShouldLogExceptions, setShouldLogExceptionStackTrace, setShouldPrintConnection, setShouldPrintDate, setShouldPrintSession, setShouldPrintThread, setWriter, severe, shouldLog, shouldLogDebug, shouldLogExceptions, shouldLogExceptionStackTrace, shouldPrintConnection, shouldPrintDate, shouldPrintSession, shouldPrintThread, warning |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TOPLINK_NAMESPACE
JavaLogpublic static final java.lang.String DEFAULT_TOPLINK_NAMESPACE
public static final java.lang.String SESSION_TOPLINK_NAMESPACE
| Method Detail |
|---|
public int getLevel(java.lang.String category)
Return the effective log level for the name space extracted from session and category. If a Logger's level is set to be null then the Logger will use an effective Level that will be obtained by walking up the parent tree and using the first non-null Level.
getLevel in interface SessionLoggetLevel in class AbstractSessionLogcategory - the string representation of a TopLink category, e.g. "sql", "transaction" ...
public void setLevel(int level,
java.lang.String category)
Set the log level to a logger with name space extracted from the given category.
setLevel in interface SessionLogsetLevel in class AbstractSessionLoglevel - the new log levelcategory - the string representation of a TopLink category, e.g. "sql", "transaction" ...public void setWriter(java.io.OutputStream fileOutputStream)
Set the output stream that will receive the formatted log entries.
setWriter in class AbstractSessionLogfileOutputStream - the file output stream will receive the formatted log entries.public void setSession(Session session)
Set the session and session namespace.
setSession in interface SessionLogsetSession in class AbstractSessionLogsession - a Session
public boolean shouldLog(int level,
java.lang.String category)
Check if a message of the given level would actually be logged by the logger with name space built from the given session and category. Return the shouldLog for the given category from
shouldLog in interface SessionLogshouldLog in class AbstractSessionLoglevel - the log request levelcategory - the string representation of a TopLink category, e.g. "sql", "transaction" ...*public void log(SessionLogEntry entry)
Log a SessionLogEntry
log in interface SessionLoglog in class AbstractSessionLogentry - SessionLogEntry that holds all the information for a TopLink logging eventpublic void throwing(java.lang.Throwable throwable)
Log a throwable.
throwing in interface SessionLogthrowing in class AbstractSessionLogthrowable - a throwable
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||