Class Log4JLoggerAccessor


  • public class Log4JLoggerAccessor
    extends DefaultAccessor
    The Class Log4JLoggerAccessor.
    • Field Detail

      • context

        private boolean context
        The context.
    • Constructor Detail

      • Log4JLoggerAccessor

        public Log4JLoggerAccessor()
    • Method Detail

      • getAppender

        public Log4JAppenderAccessor getAppender​(String name)
        Gets the appender.
        Parameters:
        name - the name
        Returns:
        the appender
      • isContext

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

        public void setContext​(boolean context)
        Sets the context.
        Parameters:
        context - the new 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 level.
        Returns:
        the level
      • setLevel

        public void setLevel​(String newLevelStr)
        Sets the level.
        Parameters:
        newLevelStr - the new level
      • wrapAppender

        private Log4JAppenderAccessor wrapAppender​(Object appender)
        Wrap appender.
        Parameters:
        appender - the appender
        Returns:
        the log4 j appender accessor