Package ubic.gemma.cli.logging
Interface LoggingConfigurer
- All Known Implementing Classes:
Log4jConfigurer
public interface LoggingConfigurer
Simple interface for configuring logging levels.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()Apply pending changes to the configuration.voidconfigureAllLoggers(int newLevel) Set the logging level of all loggers.default voidconfigureAllLoggers(String newLevel) Set the logging level of all loggers using a named level.voidconfigureLogger(String loggerName, int newLevel) Set the logging level of a specific logger.default voidconfigureLogger(String loggerName, String newLevel) Set the logging level of a specific logger using a named level.Obtain the list of all logger names.
-
Field Details
-
NAMED_LEVELS
-
NUMBERED_LEVELS
-
-
Method Details
-
getAllLoggerNames
Obtain the list of all logger names.- Returns:
-
configureAllLoggers
void configureAllLoggers(int newLevel) Set the logging level of all loggers.- Throws:
IllegalArgumentException- if newLevel is invalid
-
configureAllLoggers
Set the logging level of all loggers using a named level.- Throws:
IllegalArgumentException- if newLevel is invalid
-
configureLogger
Set the logging level of a specific logger.- Throws:
IllegalArgumentException- if loggerName or newLevel is invalid
-
configureLogger
Set the logging level of a specific logger using a named level.- Throws:
IllegalArgumentException- if loggerName or newLevel is invalid
-
apply
void apply()Apply pending changes to the configuration.
-