Class SLF4JLogger

    • Field Detail

      • ECLIPSELINK_NAMESPACE

        public static final String ECLIPSELINK_NAMESPACE
        The default session name in case there is session name is missing.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SLF4JLogger

        public SLF4JLogger()
        Creates an instance of EclipseLink logger bridge over SLF4J
    • Method Detail

      • getLevel

        public int getLevel()
        Get the logging level for the default logging category.
        Specified by:
        getLevel in interface SessionLog
        Overrides:
        getLevel in class AbstractSessionLog
        Returns:
        level Current logging level for default the default logging category.
      • getLevel

        public int getLevel​(String categoryName)
        Get the logging level for the specified logging category.
        Specified by:
        getLevel in interface SessionLog
        Overrides:
        getLevel in class AbstractSessionLog
        Parameters:
        categoryName - The String representation of an EclipseLink logging category.
        Returns:
        level Current logging level for default the default logging category.
      • setLevel

        public void setLevel​(int level)
        Set the logging level for the default logging category.
        Specified by:
        setLevel in interface SessionLog
        Overrides:
        setLevel in class AbstractSessionLog
        Parameters:
        level - The logging level to be set.
      • setLevel

        public void setLevel​(int level,
                             String categoryName)
        Set the logging level for the specified logging category.
        Specified by:
        setLevel in interface SessionLog
        Overrides:
        setLevel in class AbstractSessionLog
        Parameters:
        level - The logging level to be set.
        categoryName - The String representation of an EclipseLink logging category.
      • shouldLog

        public boolean shouldLog​(int level)
        Check if a message of the given level would actually be logged under logging level for the default logging category.
        Specified by:
        shouldLog in interface SessionLog
        Overrides:
        shouldLog in class AbstractSessionLog
        Parameters:
        level - Message logging level.
        Returns:
        Value of true if the given message logging level will be logged or false otherwise.
      • shouldLog

        public boolean shouldLog​(int level,
                                 String categoryName)
        Check if a message of the given level would actually be logged under logging level for the specified logging category.
        Specified by:
        shouldLog in interface SessionLog
        Overrides:
        shouldLog in class AbstractSessionLog
        Parameters:
        level - Message logging level.
        categoryName - The String representation of an EclipseLink logging category.
        Returns:
        Value of true if the given message logging level will be logged or false otherwise.