Class LoggingManagerImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.slf4j.Logger log  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPropertyFilter​(java.lang.String key, java.lang.String value)
      Restricts collected events to only those that have the matching value, IF the key is present in the MDC context.
      protected LoggingSystemTurboFilter baseFilter()
      Returns basefilter, first initializing and adding to logger context if needed.
      void clearPropertyLevel​(java.lang.String key, java.lang.String value)
      Removes a specific key/value level from the logging system.
      void clearPropertyLevels()
      Clears all property levels defined in the system.
      protected ch.qos.logback.classic.LoggerContext getLoggerContext()  
      java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Level>> propertyFilterSettings()
      Returns a map of the property keys currently applied, as well as their values and the Level set for each value
      void removePropertyFilter​(java.lang.String key, java.lang.String value)
      Removes a filter previously registered with addPropertyFilter.
      void setLevel​(java.lang.String logger, Level level)
      Sets the level for the specified logger.
      void setPropertyLevel​(java.lang.String key, java.lang.String value, Level level)
      Sets a level for a specific MDC property/value, creating the property/value if necessary.
      void shutdown()  
      void startup()  
      • Methods inherited from class java.lang.Object

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

      • log

        protected org.slf4j.Logger log
    • Constructor Detail

      • LoggingManagerImpl

        public LoggingManagerImpl()
    • Method Detail

      • startup

        public void startup()
      • shutdown

        public void shutdown()
      • baseFilter

        protected LoggingSystemTurboFilter baseFilter()
        Returns basefilter, first initializing and adding to logger context if needed.
      • setPropertyLevel

        public void setPropertyLevel​(java.lang.String key,
                                     java.lang.String value,
                                     Level level)
        Description copied from interface: LogFilterSettings
        Sets a level for a specific MDC property/value, creating the property/value if necessary. This will cause events with matching properties to be collected at this level by the monitoring session, even if the logger level is more restrictive. This setting will not affect other monitoring sessions.
        Specified by:
        setPropertyLevel in interface LogFilterSettings
        Parameters:
        key - the name of the MDC property key
        value - the specific value belonging to the key that the Level should apply to.
        level - The level to set the MDC key value to.
      • clearPropertyLevel

        public void clearPropertyLevel​(java.lang.String key,
                                       java.lang.String value)
        Description copied from interface: LogFilterSettings
        Removes a specific key/value level from the logging system.
        Specified by:
        clearPropertyLevel in interface LogFilterSettings
      • addPropertyFilter

        public void addPropertyFilter​(java.lang.String key,
                                      java.lang.String value)
        Description copied from interface: LogFilterSettings
        Restricts collected events to only those that have the matching value, IF the key is present in the MDC context. In other words, this filter is not applied to events that do not have the key present.
        Specified by:
        addPropertyFilter in interface LogFilterSettings
        Parameters:
        key - name of the property filter to add
        value - the value for the given key that should be filtered for
      • removePropertyFilter

        public void removePropertyFilter​(java.lang.String key,
                                         java.lang.String value)
        Description copied from interface: LogFilterSettings
        Removes a filter previously registered with addPropertyFilter.
        Specified by:
        removePropertyFilter in interface LogFilterSettings
      • propertyFilterSettings

        public java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Level>> propertyFilterSettings()
        Returns a map of the property keys currently applied, as well as their values and the Level set for each value
        Specified by:
        propertyFilterSettings in interface LogFilterSettings
      • getLoggerContext

        protected ch.qos.logback.classic.LoggerContext getLoggerContext()