Package ubic.gemma.core.logging
Interface LoggingConfigurer
-
- All Known Implementing Classes:
Log4jConfigurer
public interface LoggingConfigurer
Simple interface for configuring logging levels.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
apply()
Apply pending changes to the configuration from previousconfigureAllLoggers(int)
andconfigureLogger(String, int)
invocations.void
configureAllLoggers(int newLevel)
Set the logging level of all loggers.void
configureLogger(String loggerName, int newLevel)
Set the logging level of a specific logger.
-
-
-
Method Detail
-
configureAllLoggers
void configureAllLoggers(int newLevel)
Set the logging level of all loggers.- Throws:
IllegalArgumentException
- if newLevel is invalid
-
configureLogger
void configureLogger(String loggerName, int newLevel) throws IllegalArgumentException
Set the logging level of a specific logger.- Throws:
IllegalArgumentException
- if loggerName or newLevel is invalid
-
apply
void apply()
Apply pending changes to the configuration from previousconfigureAllLoggers(int)
andconfigureLogger(String, int)
invocations.
-
-