Class LoggerConfigAdmin

    • Constructor Summary

      Constructors 
      Constructor Description
      LoggerConfigAdmin​(LoggerContext loggerContext, LoggerConfig loggerConfig)
      Constructs a new LoggerConfigAdmin with the specified LoggerContext and logger config.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getAppenderRefs()
      Returns a String array with the appender refs configured for the instrumented LoggerConfig.
      java.lang.String getFilter()
      Returns a string description of all filters configured for the instrumented LoggerConfig.
      java.lang.String getLevel()
      Returns the LoggerConfig level as a String.
      java.lang.String getName()
      Returns the name of the instrumented LoggerConfig.
      javax.management.ObjectName getObjectName()
      Returns the ObjectName of this mbean.
      boolean isAdditive()
      Returns whether the instrumented LoggerConfig is additive.
      boolean isIncludeLocation()
      Returns whether the instrumented LoggerConfig is configured to include location.
      void setAdditive​(boolean additive)
      Sets whether the instrumented LoggerConfig should be additive.
      void setLevel​(java.lang.String level)
      Sets the LoggerConfig level to the specified value.
      • Methods inherited from class java.lang.Object

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

      • objectName

        private final javax.management.ObjectName objectName
    • Constructor Detail

      • LoggerConfigAdmin

        public LoggerConfigAdmin​(LoggerContext loggerContext,
                                 LoggerConfig loggerConfig)
        Constructs a new LoggerConfigAdmin with the specified LoggerContext and logger config.
        Parameters:
        loggerContext - used in the ObjectName for this mbean
        loggerConfig - the instrumented object
    • Method Detail

      • getObjectName

        public javax.management.ObjectName getObjectName()
        Returns the ObjectName of this mbean.
        Returns:
        the ObjectName
        See Also:
        LoggerConfigAdminMBean.PATTERN
      • setLevel

        public void setLevel​(java.lang.String level)
        Description copied from interface: LoggerConfigAdminMBean
        Sets the LoggerConfig level to the specified value.
        Specified by:
        setLevel in interface LoggerConfigAdminMBean
        Parameters:
        level - the new LoggerConfig level.
      • isAdditive

        public boolean isAdditive()
        Description copied from interface: LoggerConfigAdminMBean
        Returns whether the instrumented LoggerConfig is additive.
        Specified by:
        isAdditive in interface LoggerConfigAdminMBean
        Returns:
        true if the LoggerConfig is additive, false otherwise
      • setAdditive

        public void setAdditive​(boolean additive)
        Description copied from interface: LoggerConfigAdminMBean
        Sets whether the instrumented LoggerConfig should be additive.
        Specified by:
        setAdditive in interface LoggerConfigAdminMBean
        Parameters:
        additive - true if the instrumented LoggerConfig should be additive, false otherwise
      • isIncludeLocation

        public boolean isIncludeLocation()
        Description copied from interface: LoggerConfigAdminMBean
        Returns whether the instrumented LoggerConfig is configured to include location.
        Specified by:
        isIncludeLocation in interface LoggerConfigAdminMBean
        Returns:
        whether location should be passed downstream
      • getFilter

        public java.lang.String getFilter()
        Description copied from interface: LoggerConfigAdminMBean
        Returns a string description of all filters configured for the instrumented LoggerConfig.
        Specified by:
        getFilter in interface LoggerConfigAdminMBean
        Returns:
        a string description of all configured filters for this LoggerConfig
      • getAppenderRefs

        public java.lang.String[] getAppenderRefs()
        Description copied from interface: LoggerConfigAdminMBean
        Returns a String array with the appender refs configured for the instrumented LoggerConfig.
        Specified by:
        getAppenderRefs in interface LoggerConfigAdminMBean
        Returns:
        the appender refs for the instrumented LoggerConfig.