Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

B32476-02


oracle.toplink.sessions
Class DefaultSessionLog

java.lang.Object
  extended by oracle.toplink.logging.AbstractSessionLog
      extended by oracle.toplink.sessions.DefaultSessionLog

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, SessionLog
Direct Known Subclasses:
DefaultSessionLog

Deprecated. Please use oracle.toplink.logging.DefaultSessionLog

public class DefaultSessionLog
extends AbstractSessionLog
implements java.io.Serializable

Purpose: Default log used for the session when message logging is enabled. The session can log information such as,

As well information about the message can be logged such as,

See Also:
SessionLog, DefaultSessionLog, Session.logMessage(String), Serialized Form

Field Summary

 

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

 

Constructor Summary
DefaultSessionLog()
          Deprecated. Create a new default session log.
DefaultSessionLog(java.io.Writer writer)
          Deprecated. Create a new default session log for the given writer.

 

Method Summary
 void dontLogDebug()
          Deprecated. replaced by level
 void dontLogExceptions()
          Deprecated. replaced by level
 void dontLogExceptionStackTrace()
          Deprecated. Stack trace is logged at FINER level
 void dontPrintConnection()
          Deprecated. Connection is always printed
 void dontPrintDate()
          Deprecated. Date is always printed
 void dontPrintSession()
          Deprecated. Session is always printed
 void dontPrintThread()
          Deprecated. Thread is logged at FINE or less level
 int getLevel(java.lang.String category)
          Deprecated. Return the log level for the category name space.
 java.lang.String getWriterFilename()
          Deprecated. For the given writer, return it's associated filename.
 void log(SessionLogEntry entry)
          Deprecated. Log the entry.
 void logDebug()
          Deprecated. replaced by level
 void logExceptions()
          Deprecated. replaced by level
 void logExceptionStackTrace()
          Deprecated. Stack trace is logged at FINER level
 void printConnection()
          Deprecated. Connection is always printed
 void printDate()
          Deprecated. Date is always printed
 void printSession()
          Deprecated. Session is always printed
 void printThread()
          Deprecated. Thread is logged at FINE or less level
 void setLevel(int level, java.lang.String category)
          Deprecated. Set the log level for the category name space.
 void setWriter(java.lang.String aFileName)
          Deprecated. Set the writer that will receive the formatted log entries for a file name.
 boolean shouldLog(int level, java.lang.String category)
          Deprecated. 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.

 

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, setSession, setShouldLogDebug, setShouldLogExceptions, setShouldLogExceptionStackTrace, setShouldPrintConnection, setShouldPrintDate, setShouldPrintSession, setShouldPrintThread, setWriter, setWriter, severe, shouldLog, shouldLogDebug, shouldLogExceptions, shouldLogExceptionStackTrace, shouldPrintConnection, shouldPrintDate, shouldPrintSession, shouldPrintThread, throwing, warning

 

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

 

Constructor Detail

DefaultSessionLog

public DefaultSessionLog()
Deprecated. 
Create a new default session log.

DefaultSessionLog

public DefaultSessionLog(java.io.Writer writer)
Deprecated. 
Create a new default session log for the given writer.

Method Detail

dontLogDebug

public void dontLogDebug()
Deprecated. replaced by level
OBSOLETE:

dontLogExceptions

public void dontLogExceptions()
Deprecated. replaced by level
OBSOLETE:

dontLogExceptionStackTrace

public void dontLogExceptionStackTrace()
Deprecated. Stack trace is logged at FINER level
OBSOLETE:

dontPrintConnection

public void dontPrintConnection()
Deprecated. Connection is always printed
OBSOLETE:

dontPrintDate

public void dontPrintDate()
Deprecated. Date is always printed
OBSOLETE:

dontPrintSession

public void dontPrintSession()
Deprecated. Session is always printed
OBSOLETE:

dontPrintThread

public void dontPrintThread()
Deprecated. Thread is logged at FINE or less level
OBSOLETE:

getLevel

public int getLevel(java.lang.String category)
Deprecated. 
Description copied from class: oracle.toplink.logging.AbstractSessionLog

Return the log level for the category name space.

Specified by:
getLevel in interface SessionLog
Overrides:
getLevel in class AbstractSessionLog
Parameters:
category - the string representation of a TopLink category, e.g. "sql", "transaction" ...
Returns:
the log level

setLevel

public void setLevel(int level,
                     java.lang.String category)
Deprecated. 
Description copied from class: oracle.toplink.logging.AbstractSessionLog

Set the log level for the category name space.

Specified by:
setLevel in interface SessionLog
Overrides:
setLevel in class AbstractSessionLog
Parameters:
level - the new log level
category - the string representation of a TopLink category, e.g. "sql", "transaction" ...

shouldLog

public boolean shouldLog(int level,
                         java.lang.String category)
Deprecated. 

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

Specified by:
shouldLog in interface SessionLog
Overrides:
shouldLog in class AbstractSessionLog
Parameters:
level - the log request level
category - the string representation of a TopLink category, e.g. "sql", "transaction" ...*
Returns:
true if the given message level will be logged

log

public void log(SessionLogEntry entry)
Deprecated. 
Log the entry. This writes the log entries information to a writer such as System.out or a file.
Specified by:
log in interface SessionLog
Specified by:
log in class AbstractSessionLog
Parameters:
entry - oracle.toplink.sessions.LogEntry

logDebug

public void logDebug()
Deprecated. replaced by level
OBSOLETE:

logExceptions

public void logExceptions()
Deprecated. replaced by level
OBSOLETE:

logExceptionStackTrace

public void logExceptionStackTrace()
Deprecated. Stack trace is logged at FINER level
OBSOLETE:

printConnection

public void printConnection()
Deprecated. Connection is always printed
OBSOLETE:

printDate

public void printDate()
Deprecated. Date is always printed
OBSOLETE:

printSession

public void printSession()
Deprecated. Session is always printed
OBSOLETE:

printThread

public void printThread()
Deprecated. Thread is logged at FINE or less level
OBSOLETE:

setWriter

public void setWriter(java.lang.String aFileName)
Deprecated. 
Set the writer that will receive the formatted log entries for a file name.

getWriterFilename

public java.lang.String getWriterFilename()
Deprecated. 
For the given writer, return it's associated filename. If associated writer does not have a filename, return null.

Skip navigation links

Copyright © 1998, 2009, Oracle. All Rights Reserved.