SessionLog, SessionLogEntry, DefaultSessionLog, JavaLog
| Modifier and Type | Field and Description |
|---|---|
| protected static String | CONFIG_PREFIX
Represents prefix to logged config |
| protected static final String | CONNECTION_STRING
Connection string |
| protected static String | |
| protected DateFormat | dateFormat
Format use to print the current date/time. |
| protected static SessionLog | defaultLog
Represents the singleton SessionLog |
| protected static String | FINE_PREFIX
Represents prefix to logged fine |
| protected static String | FINER_PREFIX
Represents prefix to logged finer |
| protected static String | FINEST_PREFIX
Represents prefix to logged finest |
| protected static String | INFO_PREFIX
Represents prefix to logged info |
| protected int | level
Represents the log level |
| protected Session | session
Represents the session that owns this SessionLog |
| protected static String | SEVERE_PREFIX
Represents prefix to logged severe |
| protected Boolean | shouldDisplayData
Used to determine if bingdparameters should be logged or hidden. |
| protected Boolean | shouldLogExceptionStackTrace
Allows the printing of the stack to be explicitly disabled/enabled. |
| protected Boolean | shouldPrintConnection
Allows the printing of the connection to be explicitly disabled/enabled. |
| protected Boolean | shouldPrintDate
Allows the printing of the date to be explicitly disabled/enabled. |
| protected Boolean | shouldPrintSession
Allows the printing of the session to be explicitly disabled/enabled. |
| protected Boolean | shouldPrintThread
Allows the printing of the thread to be explicitly disabled/enabled. |
| protected static final String | THREAD_STRING
Thread string |
| protected static String | TOPLINK_PREFIX
Cached TopLink prefix string. |
| protected static String | WARNING_PREFIX
Represents prefix to logged warning |
| protected Writer | writer
Represents the writer that will receive the formatted log entries |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides java. Implements org. |
| public void | config(String
the message key message)Implements org. This method is called when a config level message needs to be logged. |
| public void | fine(String
the message key message)Implements org. This method is called when a fine level message needs to be logged. |
| public void | finer(String
the message key message)Implements org. This method is called when a finer level message needs to be logged. |
| public void | finest(String
the message key message)Implements org. This method is called when a finest level message needs to be logged. |
| protected String | formatMessage(SessionLogEntry entry)
Return the formatted message based on the information from the given SessionLogEntry. |
| protected String | |
| public DateFormat | Returns: the date formatPUBLIC: Return the date format to be used when printing a log entry date. |
| protected String | |
| public static int | |
| private static String | Returns: The system default log level property value ornull if no such property is set.Return the system default log level property value. |
| public int | Returns: the log levelImplements org. Return the log level. |
| public int | Returns: the log levelthe string representation of a EclipseLink category, e.g. "sql", "transaction" ... category)Implements org. Return the log level for the category name space. |
| public String | getLevelString()
Implements org. Return the log level as a string value. |
| public static SessionLog | |
| public Session | Returns: sessionImplements org. Get the session. |
| protected String | |
| protected String | getSupplementDetailString(SessionLogEntry entry)
Return the supplement detail information including date, session, thread, connection, source class name and source method name. |
| protected String | |
| public Writer | Returns: the log writerImplements org. Return the writer that will receive the formatted log entries. |
| public void | info(String
the message key message)Implements org. This method is called when a info level message needs to be logged. |
| public boolean | |
| public void | log(int
the log request level value level, String the string message - this should not be a bundle key message)Implements org. Log a message that does not need to be translated. |
| public void | log(int
the log request level value level, String the string message message, Object a parameter of the message param)Implements org. Log a message with one parameter that needs to be translated. |
| public void | log(int
the log request level value level, String category, String the string message message, Object a parameter of the message param)Implements org. Log a message with one parameter that needs to be translated. |
| public void | log(int
the log request level value level, String the string message message, Object a parameter of the message param1, Object second parameter of the message param2)Implements org. Log a message with two parameters that needs to be translated. |
| public void | log(int
the log request level value level, String category, String the string message message, Object a parameter of the message param1, Object second parameter of the message param2)Implements org. Log a message with two parameters that needs to be translated. |
| public void | log(int
the log request level value level, String the string message message, Object a parameter of the message param1, Object second parameter of the message param2, Object third parameter of the message param3)Implements org. Log a message with three parameters that needs to be translated. |
| public void | log(int
the log request level value level, String category, String the string message message, Object a parameter of the message param1, Object second parameter of the message param2, Object third parameter of the message param3)Implements org. Log a message with three parameters that needs to be translated. |
| public void | log(int
the log request level value level, String the string message message, Object a parameter of the message param1, Object second parameter of the message param2, Object third parameter of the message param3, Object third parameter of the message param4)Implements org. Log a message with four parameters that needs to be translated. |
| public void | log(int
the log request level value level, String category, String the string message message, Object a parameter of the message param1, Object second parameter of the message param2, Object third parameter of the message param3, Object third parameter of the message param4)Implements org. Log a message with four parameters that needs to be translated. |
| public void | log(int
the log request level value level, String the string message message, Object[] array of parameters to the message params)Implements org. Log a message with an array of parameters that needs to be translated. |
| public void | log(int
the log request level value level, String category, String the string message message, Object[] array of parameters to the message params)Implements org. Log a message with an array of parameters that needs to be translated. |
| public void | log(int
the log request level level, String the string message message, Object[] array of parameters to the message params, boolean true if the message needs to be translated shouldTranslate)Implements org. Log a message. |
| public void | log(int
the log request level level, String the log category category, String the string message message, Object[] array of parameters to the message params, boolean true if the message needs to be translated shouldTranslate)Implements org. Log a message. |
| public abstract void | log(SessionLogEntry
SessionLogEntry that holds all the information for an EclipseLink logging event sessionLogEntry)Redeclares org. Log a SessionLogEntry |
| public void | logThrowable(int
the log request level value level, Throwable a Throwable throwable)Implements org. Log a throwable with level. |
| public void | logThrowable(int
the log request level value level, String category, Throwable a Throwable throwable)Implements org. Log a throwable with level. |
| protected void | printPrefixString(int level, String category)
Print the prefix string representing EclipseLink logging |
| public void | setDateFormat(DateFormat
java.text.DateFormat dateFormat)PUBLIC: Set the date format to be used when printing a log entry date. |
| public void | setLevel(int
the new log level level)Implements org. Set the log level. |
| public void | setLevel(int
the new log level level, String the string representation of an EclipseLink category, e.g. "sql", "transaction" ... category)Implements org. Set the log level for the category name space. |
| public static void | |
| public void | setSession(Session
a Session session)Implements org. Set the session. |
| public void | setShouldDisplayData(Boolean shouldDisplayData)
Implements org. |
| public void | setShouldLogExceptionStackTrace(boolean shouldLogExceptionStackTrace)
Implements org. |
| public void | setShouldPrintConnection(boolean shouldPrintConnection)
Implements org. |
| public void | setShouldPrintDate(boolean shouldPrintDate)
Implements org. |
| public void | setShouldPrintSession(boolean shouldPrintSession)
Implements org. |
| public void | setShouldPrintThread(boolean shouldPrintThread)
Implements org. |
| public void | setWriter(Writer
the log writer writer)Implements org. Set the writer that will receive the formatted log entries. |
| public void | setWriter(OutputStream
the log writer outputstream)PUBLIC: Set the writer that will receive the formatted log entries. |
| public void | severe(String
the message key message)Implements org. This method is called when a severe level message needs to be logged. |
| public boolean | shouldDisplayData()
Implements org. |
| public boolean | Returns: true if the given message level will be loggedthe log request level level)Implements org. Check if a message of the given level would actually be logged. |
| public boolean | Returns: true if the given message level will be loggedthe log request level level, String the string representation of an EclipseLink category, e.g. "sql", "transaction" ...* category)Implements org. Check if a message of the given level would actually be logged for the category name space. |
| public boolean | shouldLogExceptionStackTrace()
Implements org. |
| public boolean | shouldPrintConnection()
Implements org. |
| public boolean | shouldPrintDate()
Implements org. |
| public boolean | shouldPrintSession()
Implements org. |
| public boolean | shouldPrintThread()
Implements org. |
| public void | throwing(Throwable
a Throwable throwable)Implements org. Log a throwable at FINER level. |
| public static String | translateLoggingLevelToString(final int loggingLevel)
INTERNAL: Translate the string value of the log level to the constant value. |
| public static int | translateStringToLoggingLevel(String loggingLevel)
INTERNAL: Translate the string value of the log level to the constant value. |
| public void | warning(String
the message key message)Implements org. This method is called when a warning level message needs to be logged. |