Class JPARSLogger

java.lang.Object
org.eclipse.persistence.jpa.rs.util.JPARSLogger

public class JPARSLogger extends Object
Logger for EclipseLink JPA-RS related functionality. Publishes messages under the SessionLog.JPARS category.
  • Constructor Details

    • JPARSLogger

      public JPARSLogger()
  • Method Details

    • entering

      public static void entering(String sourceClass, String sourceMethod, Object[] params)
      Entering
      Parameters:
      sourceClass - the source class
      sourceMethod - the source method
      params - parameters
    • entering

      public static void entering(SessionLog sessionLog, String sourceClass, String sourceMethod, Object[] params)
      Entering
      Parameters:
      sessionLog - the log
      sourceClass - the source class
      sourceMethod - the source method
      params - parameters
    • entering

      public static void entering(String sourceClass, String sourceMethod, InputStream in)
      Entering
      Parameters:
      sourceClass - the source class
      sourceMethod - the source method
      in - the input stream
    • entering

      public static void entering(SessionLog sessionLog, String sourceClass, String sourceMethod, InputStream in)
      Entering
      Parameters:
      sessionLog - log receiving the message
      sourceClass - the source class
      sourceMethod - the source method
      in - the input stream
    • exiting

      public static void exiting(String sourceClass, String sourceMethod, Object[] params)
      Exiting
      Parameters:
      sourceClass - the source class
      sourceMethod - the source method
      params - parameters
    • exiting

      public static void exiting(SessionLog sessionLog, String sourceClass, String sourceMethod, Object[] params)
      Exiting
      Parameters:
      sessionLog - the log
      sourceClass - the source class
      sourceMethod - the source method
      params - parameters
    • exiting

      public static void exiting(String sourceClass, String sourceMethod, PersistenceContext context, Object object, jakarta.ws.rs.core.MediaType mediaType)
      Exiting
      Parameters:
      sourceClass - the source class
      sourceMethod - the source method
      context - the context
      object - the object
      mediaType - the media type
    • exiting

      public static void exiting(SessionLog sessionLog, String sourceClass, String sourceMethod, PersistenceContext context, Object object, jakarta.ws.rs.core.MediaType mediaType)
      Exiting
      Parameters:
      sessionLog - the log
      sourceClass - the source class
      sourceMethod - the source method
      context - the context
      object - the object
      mediaType - the media type
    • finest

      public static void finest(String message, Object[] params)
      Finest
      Parameters:
      message - the message
      params - parameters
    • finest

      public static void finest(SessionLog sessionLog, String message, Object[] params)
      Finest
      Parameters:
      sessionLog - the log
      message - the message
      params - parameters
    • fine

      public static void fine(String message, Object[] params)
      Fine
      Parameters:
      message - the message
      params - parameters
    • fine

      public static void fine(SessionLog sessionLog, String message, Object[] params)
      Fine
      Parameters:
      sessionLog - the log
      message - the message
      params - parameters
    • warning

      public static void warning(String message, Object[] params)
      Warning
      Parameters:
      message - the message
      params - parameters
    • warning

      public static void warning(SessionLog sessionLog, String message, Object[] params)
      Warning
      Parameters:
      sessionLog - the log
      message - the message
      params - parameters
    • error

      public static void error(String message, Object[] params)
      Error
      Parameters:
      message - the message
      params - parameters
    • error

      public static void error(SessionLog sessionLog, String message, Object[] params)
      Error
      Parameters:
      sessionLog - the log
      message - the message
      params - parameters
    • exception

      public static void exception(String message, Object[] params, Throwable exc)
      Exception
      Parameters:
      message - the message
      params - parameters
      exc - the throwable
    • exception

      public static void exception(SessionLog sessionLog, String message, Object[] params, Throwable exc)
      Exception
      Parameters:
      sessionLog - the log
      message - the message
      params - parameters
      exc - the throwable
    • setLogLevel

      public static void setLogLevel(Level level)
      Sets the log level
      Parameters:
      level - the new log level
    • setLogLevel

      public static void setLogLevel(SessionLog sessionLog, int level)
      Sets the log level
      Parameters:
      sessionLog - the log
      level - the new log level
    • isLoggableFinest

      public static boolean isLoggableFinest()
      Returns:
      true if log level is set to SessionLog.FINEST
    • isLoggableFinest

      public static boolean isLoggableFinest(SessionLog sessionLog)
      Parameters:
      sessionLog - the log
      Returns:
      true if log level is set to SessionLog.FINEST