Class TomcatSlf4jLogbackLoggerAccessor


  • public class TomcatSlf4jLogbackLoggerAccessor
    extends DefaultAccessor
    A wrapper for a TomcatSlf4jLogback logger.
    • Constructor Detail

      • TomcatSlf4jLogbackLoggerAccessor

        public TomcatSlf4jLogbackLoggerAccessor()
    • Method Detail

      • getAppender

        public TomcatSlf4jLogbackAppenderAccessor getAppender​(String name)
        Returns the appender of this logger with the given name.
        Parameters:
        name - the name of the appender to return
        Returns:
        the appender with the given name, or null if no such appender exists for this logger
      • isContext

        public boolean isContext()
        Checks if is context.
        Returns:
        true, if is context
      • isRoot

        public boolean isRoot()
        Checks if is root.
        Returns:
        true, if is root
      • getName

        public String getName()
        Gets the name.
        Returns:
        the name
      • getLevel

        public String getLevel()
        Gets the log level of this logger.
        Returns:
        the level of this logger
      • setLevel

        public void setLevel​(String newLevelStr)
        Sets the log level of this logger.
        Parameters:
        newLevelStr - the name of the new level
      • getSiftedAppenders

        private List<Object> getSiftedAppenders​(Object appender)
                                         throws Exception
        Gets the sifted appenders.
        Parameters:
        appender - the appender
        Returns:
        the sifted appenders
        Throws:
        Exception - the exception