public interface SessionLog
AbstractSessionLog
,
SessionLogEntry
Modifier and Type | Field and Description |
---|---|
static int |
ALL |
static String |
CACHE |
static int |
CONFIG |
static String |
CONNECTION |
static String |
DMS |
static String |
EJB |
static String |
EJB_OR_METADATA |
static String |
EVENT |
static int |
FINE |
static int |
FINER |
static int |
FINEST |
static int |
INFO |
static String[] |
loggerCategories |
static int |
OFF |
static String |
PROPAGATION |
static String |
PROPERTIES |
static String |
QUERY |
static String |
SEQUENCING |
static int |
SEVERE |
static String |
SQL |
static String |
TRANSACTION |
static int |
WARNING |
static String |
WEAVER |
Modifier and Type | Method and Description |
---|---|
void |
config(String message)
PUBLIC:
This method is called when a config level message needs to be logged.
|
void |
fine(String message)
PUBLIC:
This method is called when a fine level message needs to be logged.
|
void |
finer(String message)
PUBLIC:
This method is called when a finer level message needs to be logged.
|
void |
finest(String message)
PUBLIC:
This method is called when a finest level message needs to be logged.
|
int |
getLevel()
PUBLIC:
Return the log level.
|
int |
getLevel(String category)
PUBLIC:
Return the log level.
|
Session |
getSession()
PUBLIC:
Get the session that owns this SessionLog.
|
Writer |
getWriter()
PUBLIC:
Return the writer to which an accessor writes logged messages and SQL.
|
void |
info(String message)
PUBLIC:
This method is called when a info level message needs to be logged.
|
void |
log(int level,
String message)
PUBLIC:
Log a message that does not need to be translated.
|
void |
log(int level,
String message,
Object param)
INTERNAL:
Log a message with one parameter that needs to be translated.
|
void |
log(int level,
String message,
Object[] arguments)
INTERNAL:
This method is called when the log request is from somewhere session is not available.
|
void |
log(int level,
String message,
Object[] arguments,
boolean shouldTranslate)
INTERNAL:
This method is called when the log request is from somewhere session is not available.
|
void |
log(int level,
String message,
Object param1,
Object param2)
INTERNAL:
Log a message with two parameters that needs to be translated.
|
void |
log(int level,
String message,
Object param1,
Object param2,
Object param3)
INTERNAL:
Log a message with three parameters that needs to be translated.
|
void |
log(SessionLogEntry entry)
INTERNAL:
TopLink will call this method whenever something
needs to be logged (messages, SQL, etc.).
|
void |
logThrowable(int level,
Throwable throwable)
PUBLIC:
Log a throwable with level.
|
void |
setLevel(int level)
PUBLIC:
Set the log level.
|
void |
setLevel(int level,
String category)
PUBLIC:
Set the log level.
|
void |
setSession(Session session)
PUBLIC:
Set the session that owns this SessionLog.
|
void |
setShouldLogExceptionStackTrace(boolean flag)
By default stack trace is logged for SEVERE all the time and at FINER level for WARNING or less.
|
void |
setShouldPrintConnection(boolean flag)
By default the connection is always printed whenever available, this can be turned off.
|
void |
setShouldPrintDate(boolean flag)
By default date is printed, this can be turned off.
|
void |
setShouldPrintSession(boolean flag)
By default the Session is always printed whenever available, this can be turned off.
|
void |
setShouldPrintThread(boolean flag)
By default the thread is logged at FINE or less level, this can be turned off.
|
void |
setWriter(Writer log)
PUBLIC:
Set the writer to which an accessor writes logged messages and SQL.
|
void |
severe(String message)
PUBLIC:
This method is called when a severe level message needs to be logged.
|
boolean |
shouldLog(int level)
PUBLIC:
Check if a message of the given level would actually be logged.
|
boolean |
shouldLog(int level,
String category)
PUBLIC:
Check if a message of the given level would actually be logged.
|
boolean |
shouldLogExceptionStackTrace()
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()
By default the connection is always printed whenever available, this can be turned off.
|
boolean |
shouldPrintDate()
By default the date is always printed, this can be turned off.
|
boolean |
shouldPrintSession()
By default the Session is always printed whenever available, this can be turned off.
|
boolean |
shouldPrintThread()
By default the thread is logged at FINE or less level, this can be turned off.
|
void |
throwing(Throwable throwable)
PUBLIC:
This method is called when a throwable at finer level needs to be logged.
|
void |
warning(String message)
PUBLIC:
This method is called when a warning level message needs to be logged.
|
static final int OFF
static final int SEVERE
static final int WARNING
static final int INFO
static final int CONFIG
static final int FINE
static final int FINER
static final int FINEST
static final int ALL
static final String SQL
static final String TRANSACTION
static final String EVENT
static final String CONNECTION
static final String QUERY
static final String CACHE
static final String PROPAGATION
static final String SEQUENCING
static final String EJB
static final String DMS
static final String EJB_OR_METADATA
static final String WEAVER
static final String PROPERTIES
static final String[] loggerCategories
void log(SessionLogEntry entry)
entry
- oracle.toplink.essentials.sessions.LogEntryboolean shouldLogExceptionStackTrace()
boolean shouldPrintDate()
boolean shouldPrintThread()
boolean shouldPrintConnection()
boolean shouldPrintSession()
void setShouldLogExceptionStackTrace(boolean flag)
void setShouldPrintDate(boolean flag)
void setShouldPrintThread(boolean flag)
void setShouldPrintConnection(boolean flag)
void setShouldPrintSession(boolean flag)
Writer getWriter()
void setWriter(Writer log)
int getLevel()
int getLevel(String category)
void setLevel(int level)
void setLevel(int level, String category)
boolean shouldLog(int level)
boolean shouldLog(int level, String category)
void log(int level, String message)
void log(int level, String message, Object param)
void log(int level, String message, Object param1, Object param2)
void log(int level, String message, Object param1, Object param2, Object param3)
void log(int level, String message, Object[] arguments)
void log(int level, String message, Object[] arguments, boolean shouldTranslate)
void throwing(Throwable throwable)
void severe(String message)
void warning(String message)
void info(String message)
void config(String message)
void fine(String message)
void finer(String message)
void finest(String message)
void logThrowable(int level, Throwable throwable)
Session getSession()
void setSession(Session session)
Copyright © 2023. All rights reserved.