Class ServerLog

java.lang.Object
org.eclipse.persistence.logging.AbstractSessionLog
org.eclipse.persistence.platform.server.ServerLog
All Implemented Interfaces:
Cloneable, SessionLog

public class ServerLog extends AbstractSessionLog

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:
  • Constructor Details

    • ServerLog

      public ServerLog()
      PUBLIC:

      Create and return a new ServerLog.

  • Method Details

    • log

      public void log(SessionLogEntry entry)
      PUBLIC:

      Log a SessionLogEntry

      Specified by:
      log in interface SessionLog
      Specified by:
      log in class AbstractSessionLog
      Parameters:
      entry - SessionLogEntry that holds all the information for a TopLink logging event

    • basicLog

      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 - the log request level

      message - the formatted string message