Top Description Fields Constructors Methods
org.eclipse.persistence.platform.server

public Class ServerLog

extends AbstractSessionLog
Class Inheritance
Imports
java.io.*, org.eclipse.persistence.internal.helper.*, org.eclipse.persistence.exceptions.*, org.eclipse.persistence.logging.*

Basic logging class that provides framework for integration with the application server log. This class is used when messages need to be logged through an application server, e.g. OC4J.

See Also
SessionLog, AbstractSessionLog, SessionLogEntry, Session

Field Summary

Inherited from org.eclipse.persistence.logging.AbstractSessionLog:
CONFIG_PREFIXCONNECTION_STRINGDATE_FORMAT_STRdateFormatdefaultLogFINE_PREFIXFINER_PREFIXFINEST_PREFIXINFO_PREFIXlevelsessionSEVERE_PREFIXshouldDisplayDatashouldLogExceptionStackTraceshouldPrintConnectionshouldPrintDateshouldPrintSessionshouldPrintThreadTHREAD_STRINGTOPLINK_PREFIXWARNING_PREFIXwriter

Constructor Summary

AccessConstructor and Description
public
ServerLog()

PUBLIC:

Create and return a new ServerLog.

Method Summary

Modifier and TypeMethod and Description
protected void
basicLog(int
the log request level
level
,
String category, String
the formatted string message
message
)

Log message to a writer by default.

public void
log(SessionLogEntry
SessionLogEntry that holds all the information for a TopLink logging event
entry
)

Implements abstract org.eclipse.persistence.logging.AbstractSessionLog.log.

Implements org.eclipse.persistence.logging.SessionLog.log.

PUBLIC:

Log a SessionLogEntry

Inherited from org.eclipse.persistence.logging.AbstractSessionLog:
cloneconfigfinefinerfinestformatMessagegetConnectionStringgetDateFormatgetDateStringgetDefaultLoggingLevelgetLevelgetLevelgetLevelStringgetLoggetSessiongetSessionStringgetSupplementDetailStringgetThreadStringgetWriterinfoisOffloglogloglogloglogloglogloglogloglogloglogThrowablelogThrowableprintPrefixStringsetDateFormatsetLevelsetLevelsetLogsetSessionsetShouldDisplayDatasetShouldLogExceptionStackTracesetShouldPrintConnectionsetShouldPrintDatesetShouldPrintSessionsetShouldPrintThreadsetWritersetWritersevereshouldDisplayDatashouldLogshouldLogshouldLogExceptionStackTraceshouldPrintConnectionshouldPrintDateshouldPrintSessionshouldPrintThreadthrowingtranslateLoggingLevelToStringtranslateStringToLoggingLevelwarning

Constructor Detail

ServerLogback to summary
public ServerLog()

PUBLIC:

Create and return a new ServerLog.

Method Detail

basicLogback to summary
protected void basicLog(int level, String category, String message)

Log message to a writer by default. It needs to be overridden by the subclasses.

Parameters
level:int

the log request level

message:String

the formatted string message

logback to summary
public void log(SessionLogEntry entry)

Implements abstract org.eclipse.persistence.logging.AbstractSessionLog.log.

Implements org.eclipse.persistence.logging.SessionLog.log.

PUBLIC:

Log a SessionLogEntry

Parameters
entry:SessionLogEntry

SessionLogEntry that holds all the information for a TopLink logging event

Annotations
@Override