|
Oracle TopLink Java API Reference 10g Release 3 (10.1.3.1) B28219-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Deprecated. This class has been replaced by SessionLog
SessionLog is the ever-so-simple interface used by TopLink to log generated messages and SQL. An implementor of this interface can be passed to the TopLink session (via the #setSessionLog(SessionLog) method); and all logging data will be passed through to the implementor via an instance of SessionLogEntry. This can be used to supplement debugging; or the entries could be stored in a database instead of logged to System.out; etc.
AbstractSessionLog
, SessionLogEntry
, Session
Field Summary | |
static int |
ALL Deprecated. |
static java.lang.String |
CACHE Deprecated. |
static int |
CONFIG Deprecated. |
static java.lang.String |
CONNECTION Deprecated. |
static java.lang.String |
DMS Deprecated. |
static java.lang.String |
EJB Deprecated. |
static java.lang.String |
EJB_ANNOTATION Deprecated. |
static java.lang.String |
EVENT Deprecated. |
static int |
FINE Deprecated. |
static int |
FINER Deprecated. |
static int |
FINEST Deprecated. |
static int |
INFO Deprecated. |
static int |
OFF Deprecated. |
static java.lang.String |
PROPAGATION Deprecated. |
static java.lang.String |
QUERY Deprecated. |
static java.lang.String |
SEQUENCING Deprecated. |
static int |
SEVERE Deprecated. |
static java.lang.String |
SQL Deprecated. |
static java.lang.String |
TRANSACTION Deprecated. |
static int |
WARNING Deprecated. |
static java.lang.String |
WEAVER Deprecated. |
Method Summary | |
void |
config(java.lang.String message) Deprecated. PUBLIC: This method is called when a config level message needs to be logged. |
void |
fine(java.lang.String message) Deprecated. PUBLIC: This method is called when a fine level message needs to be logged. |
void |
finer(java.lang.String message) Deprecated. PUBLIC: This method is called when a finer level message needs to be logged. |
void |
finest(java.lang.String message) Deprecated. PUBLIC: This method is called when a finest level message needs to be logged. |
int |
getLevel() Deprecated. PUBLIC: Return the log level. |
int |
getLevel(java.lang.String category) Deprecated. PUBLIC: Return the log level. |
Session |
getSession() Deprecated. PUBLIC: Get the session that owns this SessionLog. |
java.io.Writer |
getWriter() Deprecated. PUBLIC: Return the writer to which an accessor writes logged messages and SQL. |
void |
info(java.lang.String message) Deprecated. PUBLIC: This method is called when a info level message needs to be logged. |
void |
log(int level, java.lang.String message) Deprecated. PUBLIC: Log a message that does not need to be translated. |
void |
log(int level, java.lang.String message, java.lang.Object param) Deprecated. PUBLIC: Log a message with one parameter that needs to be translated. |
void |
log(int level, java.lang.String message, java.lang.Object[] arguments) Deprecated. PUBLIC: This method is called when the log request is from somewhere session is not available. |
void |
log(int level, java.lang.String message, java.lang.Object[] arguments, boolean shouldTranslate) Deprecated. PUBLIC: This method is called when the log request is from somewhere session is not available. |
void |
log(int level, java.lang.String message, java.lang.Object param1, java.lang.Object param2) Deprecated. PUBLIC: Log a message with two parameters that needs to be translated. |
void |
log(int level, java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3) Deprecated. PUBLIC: Log a message with three parameters that needs to be translated. |
void |
log(SessionLogEntry entry) Deprecated. PUBLIC: TopLink will call this method whenever something needs to be logged (messages, SQL, etc.). |
void |
log(SessionLogEntry entry) Deprecated. |
void |
logThrowable(int level, java.lang.Throwable throwable) Deprecated. PUBLIC: Log a throwable with level. |
void |
setLevel(int level) Deprecated. PUBLIC: Set the log level. |
void |
setLevel(int level, java.lang.String category) Deprecated. PUBLIC: Set the log level. |
void |
setSession(Session session) Deprecated. PUBLIC: Set the session that owns this SessionLog. |
void |
setShouldLogDebug(boolean flag) Deprecated. |
void |
setShouldLogExceptions(boolean flag) Deprecated. |
void |
setShouldLogExceptionStackTrace(boolean flag) Deprecated. By default stack trace is logged for SEVERE all the time and at FINER level for WARNING or less. |
void |
setShouldPrintConnection(boolean flag) Deprecated. By default the connection is always printed whenever available, this can be turned off. |
void |
setShouldPrintDate(boolean flag) Deprecated. By default date is printed, this can be turned off. |
void |
setShouldPrintSession(boolean flag) Deprecated. By default the Session is always printed whenever available, this can be turned off. |
void |
setShouldPrintThread(boolean flag) Deprecated. By default the thread is logged at FINE or less level, this can be turned off. |
void |
setWriter(java.io.Writer log) Deprecated. PUBLIC: Set the writer to which an accessor writes logged messages and SQL. |
void |
severe(java.lang.String message) Deprecated. PUBLIC: This method is called when a severe level message needs to be logged. |
boolean |
shouldLog(int level) Deprecated. PUBLIC: Check if a message of the given level would actually be logged. |
boolean |
shouldLog(int level, java.lang.String category) Deprecated. PUBLIC: Check if a message of the given level would actually be logged. |
boolean |
shouldLogDebug() Deprecated. |
boolean |
shouldLogExceptions() Deprecated. |
boolean |
shouldLogExceptionStackTrace() Deprecated. By default the stack trace is logged for SEVERE all the time and at FINER level for WARNING or less, this can be turned off. |
boolean |
shouldPrintConnection() Deprecated. By default the connection is always printed whenever available, this can be turned off. |
boolean |
shouldPrintDate() Deprecated. By default the date is always printed, this can be turned off. |
boolean |
shouldPrintSession() Deprecated. By default the Session is always printed whenever available, this can be turned off. |
boolean |
shouldPrintThread() Deprecated. By default the thread is logged at FINE or less level, this can be turned off. |
void |
throwing(java.lang.Throwable throwable) Deprecated. PUBLIC: This method is called when a throwable at finer level needs to be logged. |
void |
warning(java.lang.String message) Deprecated. PUBLIC: This method is called when a warning level message needs to be logged. |
Field Detail |
public static final int OFF
public static final int SEVERE
public static final int WARNING
public static final int INFO
public static final int CONFIG
public static final int FINE
public static final int FINER
public static final int FINEST
public static final int ALL
public static final java.lang.String SQL
public static final java.lang.String TRANSACTION
public static final java.lang.String EVENT
public static final java.lang.String CONNECTION
public static final java.lang.String QUERY
public static final java.lang.String CACHE
public static final java.lang.String PROPAGATION
public static final java.lang.String SEQUENCING
public static final java.lang.String EJB
public static final java.lang.String DMS
public static final java.lang.String EJB_ANNOTATION
public static final java.lang.String WEAVER
Method Detail |
public void log(SessionLogEntry entry)
entry
- oracle.toplink.sessions.LogEntrypublic void log(SessionLogEntry entry)
log(oracle.toplink.logging.SessionLogEntry)
public boolean shouldLogDebug()
public boolean shouldLogExceptions()
public boolean shouldLogExceptionStackTrace()
public boolean shouldPrintDate()
public boolean shouldPrintThread()
public boolean shouldPrintConnection()
public boolean shouldPrintSession()
public void setShouldLogDebug(boolean flag)
public void setShouldLogExceptions(boolean flag)
public void setShouldLogExceptionStackTrace(boolean flag)
public void setShouldPrintDate(boolean flag)
public void setShouldPrintThread(boolean flag)
public void setShouldPrintConnection(boolean flag)
public void setShouldPrintSession(boolean flag)
public java.io.Writer getWriter()
public void setWriter(java.io.Writer log)
public int getLevel()
public int getLevel(java.lang.String category)
public void setLevel(int level)
public void setLevel(int level, java.lang.String category)
public boolean shouldLog(int level)
public boolean shouldLog(int level, java.lang.String category)
public void log(int level, java.lang.String message)
public void log(int level, java.lang.String message, java.lang.Object param)
public void log(int level, java.lang.String message, java.lang.Object param1, java.lang.Object param2)
public void log(int level, java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3)
public void log(int level, java.lang.String message, java.lang.Object[] arguments)
public void log(int level, java.lang.String message, java.lang.Object[] arguments, boolean shouldTranslate)
public void throwing(java.lang.Throwable throwable)
public void severe(java.lang.String message)
public void warning(java.lang.String message)
public void info(java.lang.String message)
public void config(java.lang.String message)
public void fine(java.lang.String message)
public void finer(java.lang.String message)
public void finest(java.lang.String message)
public void logThrowable(int level, java.lang.Throwable throwable)
public Session getSession()
public void setSession(Session session)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |