Package com.log4rich.config
Class ConfigurationManager.ConfigurationStats
java.lang.Object
com.log4rich.config.ConfigurationManager.ConfigurationStats
- Enclosing class:
ConfigurationManager
Configuration statistics class.
Provides information about the current state of the logging configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationStats
(int loggerCount, int appenderCount, int configuredLoggerCount) Creates a new ConfigurationStats instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the total number of managed appenders.int
Gets the number of loggers with specific levels configured.int
Gets the total number of loggers.toString()
Returns a string representation of the configuration statistics.
-
Constructor Details
-
ConfigurationStats
public ConfigurationStats(int loggerCount, int appenderCount, int configuredLoggerCount) Creates a new ConfigurationStats instance.- Parameters:
loggerCount
- the total number of loggersappenderCount
- the total number of managed appendersconfiguredLoggerCount
- 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
Returns a string representation of the configuration statistics.
-