Class AbstractSessionLog
- java.lang.Object
-
- org.eclipse.persistence.logging.AbstractSessionLog
-
- All Implemented Interfaces:
java.lang.Cloneable,SessionLog
- Direct Known Subclasses:
DefaultSessionLog,JavaLog,ServerLog
public abstract class AbstractSessionLog extends java.lang.Object implements SessionLog, java.lang.Cloneable
Represents the abstract log that implements all the generic logging functions. It contains a singleton SessionLog that logs messages from outside any EclipseLink session. The singleton SessionLog can also be passed to an EclipseLink session when messages are logged through that session. When JDK1.4 is used, a singleton JavaLog is created. Otherwise a singleton DefaultSessionLog is created.- See Also:
SessionLog,SessionLogEntry,DefaultSessionLog,JavaLog
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCONFIG_PREFIXRepresents prefix to logged configprotected static java.lang.StringCONNECTION_STRINGConnection stringprotected static java.lang.StringDATE_FORMAT_STRprotected java.text.DateFormatdateFormatFormat use to print the current date/time.protected static SessionLogdefaultLogRepresents the singleton SessionLogprotected static java.lang.StringFINE_PREFIXRepresents prefix to logged fineprotected static java.lang.StringFINER_PREFIXRepresents prefix to logged finerprotected static java.lang.StringFINEST_PREFIXRepresents prefix to logged finestprotected static java.lang.StringINFO_PREFIXRepresents prefix to logged infoprotected intlevelRepresents the log levelprotected SessionsessionRepresents the session that owns this SessionLogprotected static java.lang.StringSEVERE_PREFIXRepresents prefix to logged severeprotected java.lang.BooleanshouldDisplayDataUsed to determine if bingdparameters should be logged or hidden.protected java.lang.BooleanshouldLogExceptionStackTraceAllows the printing of the stack to be explicitly disabled/enabled.protected java.lang.BooleanshouldPrintConnectionAllows the printing of the connection to be explicitly disabled/enabled.protected java.lang.BooleanshouldPrintDateAllows the printing of the date to be explicitly disabled/enabled.protected java.lang.BooleanshouldPrintSessionAllows the printing of the session to be explicitly disabled/enabled.protected java.lang.BooleanshouldPrintThreadAllows the printing of the thread to be explicitly disabled/enabled.protected static java.lang.StringTHREAD_STRINGThread stringprotected static java.lang.StringTOPLINK_PREFIXCached TopLink prefix string.protected static java.lang.StringWARNING_PREFIXRepresents prefix to logged warningprotected java.io.WriterwriterRepresents the writer that will receive the formatted log entries-
Fields inherited from interface org.eclipse.persistence.logging.SessionLog
ALL, ALL_LABEL, CACHE, CONFIG, CONFIG_LABEL, CONNECTION, DBWS, DDL, DMS, EJB, EJB_OR_METADATA, EVENT, FINE, FINE_LABEL, FINER, FINER_LABEL, FINEST, FINEST_LABEL, INFO, INFO_LABEL, JPA, JPARS, loggerCatagories, METADATA, METAMODEL, MISC, MONITORING, MOXY, OFF, OFF_LABEL, PROCESSOR, PROPAGATION, PROPERTIES, QUERY, SEQUENCING, SERVER, SEVERE, SEVERE_LABEL, SQL, THREAD, TRANSACTION, WARNING, WARNING_LABEL, WEAVER
-
-
Constructor Summary
Constructors Constructor Description AbstractSessionLog()PUBLIC: Create a new AbstractSessionLog
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()INTERNAL: Each session owns its own session log because session is stored in the session logvoidconfig(java.lang.String message)PUBLIC:voidfine(java.lang.String message)PUBLIC:voidfiner(java.lang.String message)PUBLIC:voidfinest(java.lang.String message)PUBLIC:protected java.lang.StringformatMessage(SessionLogEntry entry)Return the formatted message based on the information from the given SessionLogEntry.protected java.lang.StringgetConnectionString(org.eclipse.persistence.internal.databaseaccess.Accessor connection)Return the specified connection information.java.text.DateFormatgetDateFormat()PUBLIC: Return the date format to be used when printing a log entry date.protected java.lang.StringgetDateString(java.util.Date date)Return the specified date and/or time information in string.static intgetDefaultLoggingLevel()Return the system default log level.intgetLevel()PUBLIC:intgetLevel(java.lang.String category)PUBLIC:java.lang.StringgetLevelString()PUBLIC:static SessionLoggetLog()PUBLIC:SessiongetSession()PUBLIC:protected java.lang.StringgetSessionString(Session session)Return the current session including the type and id.protected java.lang.StringgetSupplementDetailString(SessionLogEntry entry)Return the supplement detail information including date, session, thread, connection, source class name and source method name.protected java.lang.StringgetThreadString(java.lang.Thread thread)Return the specified thread information.java.io.WritergetWriter()PUBLIC:voidinfo(java.lang.String message)PUBLIC:booleanisOff()INTERNAL: Check if the log level is set to off.voidlog(int level, java.lang.String message)PUBLIC:voidlog(int level, java.lang.String message, java.lang.Object param)PUBLIC:voidlog(int level, java.lang.String message, java.lang.Object[] params)PUBLIC:voidlog(int level, java.lang.String message, java.lang.Object[] params, boolean shouldTranslate)PUBLIC:voidlog(int level, java.lang.String message, java.lang.Object param1, java.lang.Object param2)PUBLIC:voidlog(int level, java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3)PUBLIC:voidlog(int level, java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4)PUBLIC:voidlog(int level, java.lang.String category, java.lang.String message, java.lang.Object param)PUBLIC:voidlog(int level, java.lang.String category, java.lang.String message, java.lang.Object[] params)PUBLIC:voidlog(int level, java.lang.String category, java.lang.String message, java.lang.Object[] params, boolean shouldTranslate)PUBLIC:voidlog(int level, java.lang.String category, java.lang.String message, java.lang.Object param1, java.lang.Object param2)PUBLIC:voidlog(int level, java.lang.String category, java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3)PUBLIC:voidlog(int level, java.lang.String category, java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4)PUBLIC:abstract voidlog(SessionLogEntry sessionLogEntry)PUBLIC:voidlogThrowable(int level, java.lang.String category, java.lang.Throwable throwable)PUBLIC:voidlogThrowable(int level, java.lang.Throwable throwable)PUBLIC:protected voidprintPrefixString(int level, java.lang.String category)Print the prefix string representing EclipseLink loggingvoidsetDateFormat(java.text.DateFormat dateFormat)PUBLIC: Set the date format to be used when printing a log entry date.voidsetLevel(int level)PUBLIC:voidsetLevel(int level, java.lang.String category)PUBLIC:static voidsetLog(SessionLog sessionLog)PUBLIC:voidsetSession(Session session)PUBLIC:voidsetShouldDisplayData(java.lang.Boolean shouldDisplayData)PUBLIC: Set whether bind parameters should be displayed when logging SQL.voidsetShouldLogExceptionStackTrace(boolean shouldLogExceptionStackTrace)By default the stack is logged for FINER or less (finest).voidsetShouldPrintConnection(boolean shouldPrintConnection)By default the connection is printed, this can be turned off.voidsetShouldPrintDate(boolean shouldPrintDate)By default the date is always printed, but can be turned off.voidsetShouldPrintSession(boolean shouldPrintSession)By default the session (and its connection is available) are printed, this can be turned off.voidsetShouldPrintThread(boolean shouldPrintThread)By default the thread is logged for FINE or less (finer,etc.).voidsetWriter(java.io.OutputStream outputstream)PUBLIC:voidsetWriter(java.io.Writer writer)PUBLIC:voidsevere(java.lang.String message)PUBLIC:booleanshouldDisplayData()PUBLIC: Return true if SQL logging should log visible bind parameters.booleanshouldLog(int level)PUBLIC:booleanshouldLog(int level, java.lang.String category)PUBLIC:booleanshouldLogExceptionStackTrace()By default the stack is logged for FINER or less (finest).booleanshouldPrintConnection()By default the connection is printed, this can be turned off.booleanshouldPrintDate()By default the date is always printed, but can be turned off.booleanshouldPrintSession()By default the session (and its connection is available) are printed, this can be turned off.booleanshouldPrintThread()By default the thread is logged for FINE or less (finer,etc.).voidthrowing(java.lang.Throwable throwable)PUBLIC:static java.lang.StringtranslateLoggingLevelToString(int loggingLevel)INTERNAL: Translate the string value of the log level to the constant value.static inttranslateStringToLoggingLevel(java.lang.String loggingLevel)INTERNAL: Translate the string value of the log level to the constant value.voidwarning(java.lang.String message)PUBLIC:
-
-
-
Field Detail
-
level
protected int level
Represents the log level
-
defaultLog
protected static SessionLog defaultLog
Represents the singleton SessionLog
-
session
protected Session session
Represents the session that owns this SessionLog
-
SEVERE_PREFIX
protected static java.lang.String SEVERE_PREFIX
Represents prefix to logged severe
-
WARNING_PREFIX
protected static java.lang.String WARNING_PREFIX
Represents prefix to logged warning
-
INFO_PREFIX
protected static java.lang.String INFO_PREFIX
Represents prefix to logged info
-
CONFIG_PREFIX
protected static java.lang.String CONFIG_PREFIX
Represents prefix to logged config
-
FINE_PREFIX
protected static java.lang.String FINE_PREFIX
Represents prefix to logged fine
-
FINER_PREFIX
protected static java.lang.String FINER_PREFIX
Represents prefix to logged finer
-
FINEST_PREFIX
protected static java.lang.String FINEST_PREFIX
Represents prefix to logged finest
-
TOPLINK_PREFIX
protected static java.lang.String TOPLINK_PREFIX
Cached TopLink prefix string.
-
CONNECTION_STRING
protected static final java.lang.String CONNECTION_STRING
Connection string- See Also:
- Constant Field Values
-
THREAD_STRING
protected static final java.lang.String THREAD_STRING
Thread string- See Also:
- Constant Field Values
-
writer
protected java.io.Writer writer
Represents the writer that will receive the formatted log entries
-
DATE_FORMAT_STR
protected static java.lang.String DATE_FORMAT_STR
-
dateFormat
protected java.text.DateFormat dateFormat
Format use to print the current date/time.
-
shouldLogExceptionStackTrace
protected java.lang.Boolean shouldLogExceptionStackTrace
Allows the printing of the stack to be explicitly disabled/enabled. CR #3870467. null value is default behavior of determining from log level.
-
shouldPrintDate
protected java.lang.Boolean shouldPrintDate
Allows the printing of the date to be explicitly disabled/enabled. CR #3870467. null value is default behavior of determining from log level.
-
shouldPrintThread
protected java.lang.Boolean shouldPrintThread
Allows the printing of the thread to be explicitly disabled/enabled. CR #3870467. null value is default behavior of determining from log level.
-
shouldPrintSession
protected java.lang.Boolean shouldPrintSession
Allows the printing of the session to be explicitly disabled/enabled. CR #3870467. null value is default behavior of determining from log level.
-
shouldPrintConnection
protected java.lang.Boolean shouldPrintConnection
Allows the printing of the connection to be explicitly disabled/enabled. CR #4157545. null value is default behavior of determining from log level.
-
shouldDisplayData
protected java.lang.Boolean shouldDisplayData
Used to determine if bingdparameters should be logged or hidden.
-
-
Method Detail
-
getDefaultLoggingLevel
public static int getDefaultLoggingLevel()
Return the system default log level. This is based on the System property "eclipselink.logging.level", or INFO if not set.
-
getLevel
public int getLevel()
PUBLIC:Return the log level. It is used when session is not available.
- Specified by:
getLevelin interfaceSessionLog- Returns:
- the log level
-
getLevelString
public java.lang.String getLevelString()
PUBLIC:Return the log level as a string value.
- Specified by:
getLevelStringin interfaceSessionLog
-
getLevel
public int getLevel(java.lang.String category)
PUBLIC:Return the log level for the category name space.
- Specified by:
getLevelin interfaceSessionLog- Parameters:
category- the string representation of a EclipseLink category, e.g. "sql", "transaction" ...- Returns:
- the log level
-
setLevel
public void setLevel(int level)
PUBLIC:Set the log level. It is used when session is not available.
- Specified by:
setLevelin interfaceSessionLog- Parameters:
level- the new log level
-
setLevel
public void setLevel(int level, java.lang.String category)PUBLIC:Set the log level for the category name space.
- Specified by:
setLevelin interfaceSessionLog- Parameters:
level- the new log levelcategory- the string representation of an EclipseLink category, e.g. "sql", "transaction" ...
-
shouldDisplayData
public boolean shouldDisplayData()
PUBLIC: Return true if SQL logging should log visible bind parameters. If the shouldDisplayData is not set, check the session log level and return true for a level greater than CONFIG.- Specified by:
shouldDisplayDatain interfaceSessionLog
-
shouldLog
public boolean shouldLog(int level)
PUBLIC:Check if a message of the given level would actually be logged. It is used when session is not available.
- Specified by:
shouldLogin interfaceSessionLog- Parameters:
level- the log request level- Returns:
- true if the given message level will be logged
-
shouldLog
public boolean shouldLog(int level, java.lang.String category)PUBLIC:Check if a message of the given level would actually be logged for the category name space. !isOff() is checked to screen out the possibility when both log level and log request level are set to OFF.
- Specified by:
shouldLogin interfaceSessionLog- Parameters:
level- the log request levelcategory- the string representation of an EclipseLink category, e.g. "sql", "transaction" ...*- Returns:
- true if the given message level will be logged
-
getLog
public static SessionLog getLog()
PUBLIC:Return the singleton SessionLog. If the singleton SessionLog does not exist, a new one is created based on the version of JDK being used from the Version class.
- Returns:
- the singleton SessionLog
-
setLog
public static void setLog(SessionLog sessionLog)
PUBLIC:Set the singleton SessionLog.
- Parameters:
sessionLog- a SessionLog
-
getSession
public Session getSession()
PUBLIC:Get the session.
- Specified by:
getSessionin interfaceSessionLog- Returns:
- session
-
setSession
public void setSession(Session session)
PUBLIC:Set the session.
- Specified by:
setSessionin interfaceSessionLog- Parameters:
session- a Session
-
log
public void log(int level, java.lang.String message)PUBLIC:Log a message that does not need to be translated. This method is intended for external use when logging messages are required within the EclipseLink output.
- Specified by:
login interfaceSessionLog- Parameters:
level- the log request level valuemessage- the string message - this should not be a bundle key
-
log
public void log(int level, java.lang.String message, java.lang.Object param)PUBLIC:Log a message with one parameter that needs to be translated.
- Specified by:
login interfaceSessionLog- Parameters:
level- the log request level valuemessage- the string messageparam- a parameter of the message
-
log
public void log(int level, java.lang.String category, java.lang.String message, java.lang.Object param)PUBLIC:Log a message with one parameter that needs to be translated.
- Specified by:
login interfaceSessionLog- Parameters:
level- the log request level valuemessage- the string messageparam- a parameter of the message
-
log
public void log(int level, java.lang.String message, java.lang.Object param1, java.lang.Object param2)PUBLIC:Log a message with two parameters that needs to be translated.
- Specified by:
login interfaceSessionLog- Parameters:
level- the log request level valuemessage- the string messageparam1- a parameter of the messageparam2- second parameter of the message
-
log
public void log(int level, java.lang.String category, java.lang.String message, java.lang.Object param1, java.lang.Object param2)PUBLIC:Log a message with two parameters that needs to be translated.
- Specified by:
login interfaceSessionLog- Parameters:
level- the log request level valuemessage- the string messageparam1- a parameter of the messageparam2- second parameter of the message
-
log
public void log(int level, java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3)PUBLIC:Log a message with three parameters that needs to be translated.
- Specified by:
login interfaceSessionLog- Parameters:
level- the log request level valuemessage- the string messageparam1- a parameter of the messageparam2- second parameter of the messageparam3- third parameter of the message
-
log
public void log(int level, java.lang.String category, java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3)PUBLIC:Log a message with three parameters that needs to be translated.
- Specified by:
login interfaceSessionLog- Parameters:
level- the log request level valuemessage- the string messageparam1- a parameter of the messageparam2- second parameter of the messageparam3- third parameter of the message
-
log
public void log(int level, java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4)PUBLIC:Log a message with four parameters that needs to be translated.
- Specified by:
login interfaceSessionLog- Parameters:
level- the log request level valuemessage- the string messageparam1- a parameter of the messageparam2- second parameter of the messageparam3- third parameter of the messageparam4- third parameter of the message
-
log
public void log(int level, java.lang.String category, java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4)PUBLIC:Log a message with four parameters that needs to be translated.
- Specified by:
login interfaceSessionLog- Parameters:
level- the log request level valuemessage- the string messageparam1- a parameter of the messageparam2- second parameter of the messageparam3- third parameter of the messageparam4- third parameter of the message
-
log
public void log(int level, java.lang.String message, java.lang.Object[] params)PUBLIC:Log a message with an array of parameters that needs to be translated.
- Specified by:
login interfaceSessionLog- Parameters:
level- the log request level valuemessage- the string messageparams- array of parameters to the message
-
log
public void log(int level, java.lang.String category, java.lang.String message, java.lang.Object[] params)PUBLIC:Log a message with an array of parameters that needs to be translated.
- Specified by:
login interfaceSessionLog- Parameters:
level- the log request level valuemessage- the string messageparams- array of parameters to the message
-
log
public void log(int level, java.lang.String message, java.lang.Object[] params, boolean shouldTranslate)PUBLIC:Log a message. shouldTranslate determines if the message needs to be translated.
- Specified by:
login interfaceSessionLog- Parameters:
level- the log request levelmessage- the string messageparams- array of parameters to the messageshouldTranslate- true if the message needs to be translated
-
log
public void log(int level, java.lang.String category, java.lang.String message, java.lang.Object[] params, boolean shouldTranslate)PUBLIC:Log a message. shouldTranslate determines if the message needs to be translated.
- Specified by:
login interfaceSessionLog- Parameters:
level- the log request levelmessage- the string messagecategory- the log categoryparams- array of parameters to the messageshouldTranslate- true if the message needs to be translated
-
log
public abstract void log(SessionLogEntry sessionLogEntry)
PUBLIC:Log a SessionLogEntry
- Specified by:
login interfaceSessionLog- Parameters:
sessionLogEntry- SessionLogEntry that holds all the information for an EclipseLink logging event
-
shouldPrintSession
public boolean shouldPrintSession()
By default the session (and its connection is available) are printed, this can be turned off.- Specified by:
shouldPrintSessionin interfaceSessionLog
-
setShouldPrintSession
public void setShouldPrintSession(boolean shouldPrintSession)
By default the session (and its connection is available) are printed, this can be turned off.- Specified by:
setShouldPrintSessionin interfaceSessionLog
-
shouldPrintConnection
public boolean shouldPrintConnection()
By default the connection is printed, this can be turned off.- Specified by:
shouldPrintConnectionin interfaceSessionLog
-
setShouldPrintConnection
public void setShouldPrintConnection(boolean shouldPrintConnection)
By default the connection is printed, this can be turned off.- Specified by:
setShouldPrintConnectionin interfaceSessionLog
-
shouldLogExceptionStackTrace
public boolean shouldLogExceptionStackTrace()
By default the stack is logged for FINER or less (finest). The logging of the stack can also be explicitly turned on or off.- Specified by:
shouldLogExceptionStackTracein interfaceSessionLog
-
setShouldDisplayData
public void setShouldDisplayData(java.lang.Boolean shouldDisplayData)
PUBLIC: Set whether bind parameters should be displayed when logging SQL.- Specified by:
setShouldDisplayDatain interfaceSessionLog
-
setShouldLogExceptionStackTrace
public void setShouldLogExceptionStackTrace(boolean shouldLogExceptionStackTrace)
By default the stack is logged for FINER or less (finest). The logging of the stack can also be explicitly turned on or off.- Specified by:
setShouldLogExceptionStackTracein interfaceSessionLog
-
shouldPrintDate
public boolean shouldPrintDate()
By default the date is always printed, but can be turned off.- Specified by:
shouldPrintDatein interfaceSessionLog
-
setShouldPrintDate
public void setShouldPrintDate(boolean shouldPrintDate)
By default the date is always printed, but can be turned off.- Specified by:
setShouldPrintDatein interfaceSessionLog
-
shouldPrintThread
public boolean shouldPrintThread()
By default the thread is logged for FINE or less (finer,etc.). The logging of the thread can also be explicitly turned on or off.- Specified by:
shouldPrintThreadin interfaceSessionLog
-
setShouldPrintThread
public void setShouldPrintThread(boolean shouldPrintThread)
By default the thread is logged for FINE or less (finer,etc.). The logging of the thread can also be explicitly turned on or off.- Specified by:
setShouldPrintThreadin interfaceSessionLog
-
getWriter
public java.io.Writer getWriter()
PUBLIC:Return the writer that will receive the formatted log entries.
- Specified by:
getWriterin interfaceSessionLog- Returns:
- the log writer
-
setWriter
public void setWriter(java.io.Writer writer)
PUBLIC:Set the writer that will receive the formatted log entries.
- Specified by:
setWriterin interfaceSessionLog- Parameters:
writer- the log writer
-
setWriter
public void setWriter(java.io.OutputStream outputstream)
PUBLIC:Set the writer that will receive the formatted log entries.
- Parameters:
outputstream- the log writer
-
getDateFormat
public java.text.DateFormat getDateFormat()
PUBLIC: Return the date format to be used when printing a log entry date.- Returns:
- the date format
-
getDateString
protected java.lang.String getDateString(java.util.Date date)
Return the specified date and/or time information in string. The format will be determined by the date format settings.
-
getSupplementDetailString
protected java.lang.String getSupplementDetailString(SessionLogEntry entry)
Return the supplement detail information including date, session, thread, connection, source class name and source method name.
-
getSessionString
protected java.lang.String getSessionString(Session session)
Return the current session including the type and id.
-
getConnectionString
protected java.lang.String getConnectionString(org.eclipse.persistence.internal.databaseaccess.Accessor connection)
Return the specified connection information.
-
getThreadString
protected java.lang.String getThreadString(java.lang.Thread thread)
Return the specified thread information.
-
printPrefixString
protected void printPrefixString(int level, java.lang.String category)Print the prefix string representing EclipseLink logging
-
setDateFormat
public void setDateFormat(java.text.DateFormat dateFormat)
PUBLIC: Set the date format to be used when printing a log entry date.Note: the JDK's java.text.SimpleDateFormat is NOT thread-safe.
The user is strongly advised to consider using Apache Commons
org.apache.commons.lang.time.FastDateFormat instead.- Parameters:
dateFormat- java.text.DateFormat
-
formatMessage
protected java.lang.String formatMessage(SessionLogEntry entry)
Return the formatted message based on the information from the given SessionLogEntry. The message will either be translated and formatted or formatted only depending on if the shouldTranslate flag is set to true of false.
-
translateStringToLoggingLevel
public static int translateStringToLoggingLevel(java.lang.String loggingLevel)
INTERNAL: Translate the string value of the log level to the constant value. If value is null or invalid use the default.
-
throwing
public void throwing(java.lang.Throwable throwable)
PUBLIC:Log a throwable at FINER level.
- Specified by:
throwingin interfaceSessionLog- Parameters:
throwable- a Throwable
-
severe
public void severe(java.lang.String message)
PUBLIC:This method is called when a severe level message needs to be logged. The message will be translated
- Specified by:
severein interfaceSessionLog- Parameters:
message- the message key
-
warning
public void warning(java.lang.String message)
PUBLIC:This method is called when a warning level message needs to be logged. The message will be translated
- Specified by:
warningin interfaceSessionLog- Parameters:
message- the message key
-
info
public void info(java.lang.String message)
PUBLIC:This method is called when a info level message needs to be logged. The message will be translated
- Specified by:
infoin interfaceSessionLog- Parameters:
message- the message key
-
config
public void config(java.lang.String message)
PUBLIC:This method is called when a config level message needs to be logged. The message will be translated
- Specified by:
configin interfaceSessionLog- Parameters:
message- the message key
-
fine
public void fine(java.lang.String message)
PUBLIC:This method is called when a fine level message needs to be logged. The message will be translated
- Specified by:
finein interfaceSessionLog- Parameters:
message- the message key
-
finer
public void finer(java.lang.String message)
PUBLIC:This method is called when a finer level message needs to be logged. The message will be translated
- Specified by:
finerin interfaceSessionLog- Parameters:
message- the message key
-
finest
public void finest(java.lang.String message)
PUBLIC:This method is called when a finest level message needs to be logged. The message will be translated
- Specified by:
finestin interfaceSessionLog- Parameters:
message- the message key
-
logThrowable
public void logThrowable(int level, java.lang.Throwable throwable)PUBLIC:Log a throwable with level.
- Specified by:
logThrowablein interfaceSessionLog- Parameters:
level- the log request level valuethrowable- a Throwable
-
logThrowable
public void logThrowable(int level, java.lang.String category, java.lang.Throwable throwable)PUBLIC:Log a throwable with level.
- Specified by:
logThrowablein interfaceSessionLog- Parameters:
level- the log request level valuethrowable- a Throwable
-
isOff
public boolean isOff()
INTERNAL: Check if the log level is set to off.
-
clone
public java.lang.Object clone()
INTERNAL: Each session owns its own session log because session is stored in the session log- Specified by:
clonein interfaceSessionLog- Overrides:
clonein classjava.lang.Object
-
translateLoggingLevelToString
public static java.lang.String translateLoggingLevelToString(int loggingLevel)
INTERNAL: Translate the string value of the log level to the constant value. If value is null or invalid use the default.
-
-