Interface LoggingSupport
- All Known Implementing Classes:
LogbackLoggingSupport,NoOpFallbackLoggingSupport
public interface LoggingSupport
Common abstraction of functionality which can be implemented for different logging backend implementations (slf4j bindings).
Concrete implementations are dynamically loaded and instantiated by
LoggingSupportFactory.getLoggingSupport().-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<ch.qos.logback.core.Appender<?>>getAppender(Class<?> appenderClass, String appenderName) default voidHook used to execute logging implementation specific customization at Cassandra shutdown time.default voidHook used to execute logging implementation specific customization at Cassandra startup time.voidsetLoggingLevel(String classQualifier, String rawLevel) Changes the given logger to the given log level.
-
Method Details
-
onStartup
default void onStartup()Hook used to execute logging implementation specific customization at Cassandra startup time. -
onShutdown
default void onShutdown()Hook used to execute logging implementation specific customization at Cassandra shutdown time. -
setLoggingLevel
Changes the given logger to the given log level.- Parameters:
classQualifier- the class qualifier or logger namerawLevel- the string representation of a log level- Throws:
Exception- an exception which may occur while changing the given logger to the given log level.
-
getLoggingLevels
- Returns:
- a map of logger names and their associated log level as string representations.
-
getAppender
-