Class Log4jConfigurer
java.lang.Object
ubic.gemma.cli.logging.log4j.Log4jConfigurer
- All Implemented Interfaces:
LoggingConfigurer
Implementation of
LoggingConfigurer for Log4j.-
Field Summary
Fields inherited from interface LoggingConfigurer
NAMED_LEVELS, NUMBERED_LEVELS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()Apply pending changes to the configuration.voidconfigureAllLoggers(int newLevel) Set the logging level of all loggers.voidconfigureLogger(String loggerName, int newLevel) Set up logging according to the user-selected (or default) verbosity level.Obtain the list of all logger names.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LoggingConfigurer
configureAllLoggers, configureLogger
-
Constructor Details
-
Log4jConfigurer
public Log4jConfigurer()
-
-
Method Details
-
getAllLoggerNames
Description copied from interface:LoggingConfigurerObtain the list of all logger names.- Specified by:
getAllLoggerNamesin interfaceLoggingConfigurer- Returns:
-
configureAllLoggers
public void configureAllLoggers(int newLevel) Description copied from interface:LoggingConfigurerSet the logging level of all loggers.- Specified by:
configureAllLoggersin interfaceLoggingConfigurer
-
configureLogger
Set up logging according to the user-selected (or default) verbosity level.- Specified by:
configureLoggerin interfaceLoggingConfigurer
-
apply
public void apply()Description copied from interface:LoggingConfigurerApply pending changes to the configuration.- Specified by:
applyin interfaceLoggingConfigurer
-