Class JPARSLogger


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

      Constructors 
      Constructor Description
      JPARSLogger()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void entering​(java.lang.String sourceClass, java.lang.String sourceMethod, java.io.InputStream in)
      Entering
      static void entering​(java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)
      Entering
      static void entering​(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, java.io.InputStream in)
      Entering
      static void entering​(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)
      Entering
      static void error​(java.lang.String message, java.lang.Object[] params)
      Error
      static void error​(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)
      Error
      static void exception​(java.lang.String message, java.lang.Object[] params, java.lang.Throwable exc)
      Exception
      static void exception​(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params, java.lang.Throwable exc)
      Exception
      static void exiting​(java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)
      Exiting
      static void exiting​(java.lang.String sourceClass, java.lang.String sourceMethod, PersistenceContext context, java.lang.Object object, javax.ws.rs.core.MediaType mediaType)
      Exiting
      static void exiting​(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, java.lang.Object[] params)
      Exiting
      static void exiting​(SessionLog sessionLog, java.lang.String sourceClass, java.lang.String sourceMethod, PersistenceContext context, java.lang.Object object, javax.ws.rs.core.MediaType mediaType)
      Exiting
      static void fine​(java.lang.String message, java.lang.Object[] params)
      Fine
      static void fine​(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)
      Fine
      static void finest​(java.lang.String message, java.lang.Object[] params)
      Finest
      static void finest​(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)
      Finest
      static boolean isLoggableFinest()  
      static boolean isLoggableFinest​(SessionLog sessionLog)  
      static void setLogLevel​(java.util.logging.Level level)
      Sets the log level
      static void setLogLevel​(SessionLog sessionLog, int level)
      Sets the log level
      static void warning​(java.lang.String message, java.lang.Object[] params)
      Warning
      static void warning​(SessionLog sessionLog, java.lang.String message, java.lang.Object[] params)
      Warning
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JPARSLogger

        public JPARSLogger()
    • Method Detail

      • entering

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

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

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

        public static void entering​(SessionLog sessionLog,
                                    java.lang.String sourceClass,
                                    java.lang.String sourceMethod,
                                    java.io.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​(java.lang.String sourceClass,
                                   java.lang.String sourceMethod,
                                   java.lang.Object[] params)
        Exiting
        Parameters:
        sourceClass - the source class
        sourceMethod - the source method
        params - parameters
      • exiting

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

        public static void exiting​(java.lang.String sourceClass,
                                   java.lang.String sourceMethod,
                                   PersistenceContext context,
                                   java.lang.Object object,
                                   javax.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,
                                   java.lang.String sourceClass,
                                   java.lang.String sourceMethod,
                                   PersistenceContext context,
                                   java.lang.Object object,
                                   javax.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​(java.lang.String message,
                                  java.lang.Object[] params)
        Finest
        Parameters:
        message - the message
        params - parameters
      • finest

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

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

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

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

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

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

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

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

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

        public static void setLogLevel​(java.util.logging.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