Package org.burningwave.core
Class ManagedLogger.Repository.Abst
java.lang.Object
org.burningwave.core.ManagedLogger.Repository.Abst
- All Implemented Interfaces:
AutoCloseable,Closeable,Identifiable,Properties.Listener,ManagedLogger.Repository
- Direct Known Subclasses:
SimpleManagedLoggerRepository,SLF4JManagedLoggerRepository
- Enclosing interface:
ManagedLogger.Repository
public abstract static class ManagedLogger.Repository.Abst
extends Object
implements ManagedLogger.Repository, Properties.Listener
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.burningwave.core.ManagedLogger.Repository
ManagedLogger.Repository.Abst, ManagedLogger.Repository.Configuration -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddLoggingLevels(Properties properties, String configKey, LoggingLevel... loggingLevels) voidclose()voidvoidboolean<K,V> void processChangeNotification(Properties properties, Properties.Event event, K key, V newValue, V oldValue) protected voidremoveLoggingLevels(Map<?, ?> properties, String configKey, LoggingLevel... loggingLevels) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.burningwave.core.Closeable
closeResources, closeResources, createCloseResoucesTask, createCloseResoucesTaskMethods inherited from interface org.burningwave.core.Identifiable
getId, getOperationIdMethods inherited from interface org.burningwave.core.ManagedLogger.Repository
addLoggingLevelFor, disableLogging, enableLogging, getLoggingLevelFlags, logDebug, logDebug, logError, logError, logError, logError, logError, logInfo, logInfo, logTrace, logTrace, logWarn, logWarn, removeLoggingLevelFor, setLoggingLevelFlags, setLoggingLevelForMethods inherited from interface org.burningwave.core.iterable.Properties.Listener
checkAndListenTo, checkAndUnregister, listenTo, unregister
-
Method Details
-
processChangeNotification
public <K,V> void processChangeNotification(Properties properties, Properties.Event event, K key, V newValue, V oldValue) - Specified by:
processChangeNotificationin interfaceProperties.Listener
-
removeLoggingLevels
protected void removeLoggingLevels(Map<?, ?> properties, String configKey, LoggingLevel... loggingLevels) -
addLoggingLevels
protected void addLoggingLevels(Properties properties, String configKey, LoggingLevel... loggingLevels) -
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceManagedLogger.Repository
-
disableLogging
public void disableLogging()- Specified by:
disableLoggingin interfaceManagedLogger.Repository
-
enableLogging
public void enableLogging()- Specified by:
enableLoggingin interfaceManagedLogger.Repository
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-