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 Type
    Method
    Description
    default Optional<ch.qos.logback.core.Appender<?>>
    getAppender(Class<?> appenderClass, String appenderName)
     
     
    default void
    Hook used to execute logging implementation specific customization at Cassandra shutdown time.
    default void
    Hook used to execute logging implementation specific customization at Cassandra startup time.
    void
    setLoggingLevel(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

      void setLoggingLevel(String classQualifier, String rawLevel) throws Exception
      Changes the given logger to the given log level.
      Parameters:
      classQualifier - the class qualifier or logger name
      rawLevel - 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

      Map<String,String> getLoggingLevels()
      Returns:
      a map of logger names and their associated log level as string representations.
    • getAppender

      default Optional<ch.qos.logback.core.Appender<?>> getAppender(Class<?> appenderClass, String appenderName)