Class ConfigurationManager.ConfigurationStats

java.lang.Object
com.log4rich.config.ConfigurationManager.ConfigurationStats
Enclosing class:
ConfigurationManager

public static class ConfigurationManager.ConfigurationStats extends Object
Configuration statistics class. Provides information about the current state of the logging configuration.
  • Constructor Details

    • ConfigurationStats

      public ConfigurationStats(int loggerCount, int appenderCount, int configuredLoggerCount)
      Creates a new ConfigurationStats instance.
      Parameters:
      loggerCount - the total number of loggers
      appenderCount - the total number of managed appenders
      configuredLoggerCount - the number of loggers with specific levels configured
  • Method Details

    • getLoggerCount

      public int getLoggerCount()
      Gets the total number of loggers.
      Returns:
      the total number of loggers
    • getAppenderCount

      public int getAppenderCount()
      Gets the total number of managed appenders.
      Returns:
      the total number of managed appenders
    • getConfiguredLoggerCount

      public int getConfiguredLoggerCount()
      Gets the number of loggers with specific levels configured.
      Returns:
      the number of configured loggers
    • toString

      public String toString()
      Returns a string representation of the configuration statistics.
      Overrides:
      toString in class Object
      Returns:
      a formatted string with logger and appender counts