Interface LogManagerMXBean


public interface LogManagerMXBean
Interface for changing the log level on the local node.

An MBean with name ECE Logging:type=Configuration will be registered on each node to manage the node's logging levels.

Note that this MBean does not allow cluster-wide logging management, which is not supported at runtime by ECE. Cluster-wide logging management can only be configured offline via the config/log4j2.xml. This file must be synchronized (using the 'sync' ECC command) across all the ECE nodes in order for the settings to be in effect when the cluster is started or restarted.

  • Method Details

    • setGridLogLevel

      void setGridLogLevel(String loggerName, String levelString)
      Set the log level in all nodes in Grid.
      Parameters:
      loggerName - logger name
      levelString - log level as string. see Level
    • setGridLogLevelForFunctionalDomain

      void setGridLogLevelForFunctionalDomain(String functionalDomain, String levelString)
      Set the log level for a specific functional domain in all nodes of Grid.
      Parameters:
      functionalDomain - the domain for which log level should be set
      levelString - log level as string. see Level
    • setLogLevel

      void setLogLevel(String loggerName, String levelString)
      Set the log level in local node
      Parameters:
      loggerName - logger name
      levelString - log level as string. see Level
    • setLogLevelForFunctionalDomain

      void setLogLevelForFunctionalDomain(String functionalDomain, String levelString)
      Set the log level for a specific functional domain in local node
      Parameters:
      functionalDomain - the domain for which log level should be set
      levelString - log level as string. see Level
    • getLoggerLevels

      Map<String,String> getLoggerLevels()
      Get all loggers' level on this node
      Returns:
      map of key-value associating log name with its log level
    • getFunctionalDomains

      Set<String> getFunctionalDomains()
      Get all the functional domains
      Returns:
      set of the functional domains
    • updateSubscriberTraceConfiguration

      void updateSubscriberTraceConfiguration()
      Update subscriber trace configuration from configuration file