Class NoOpFallbackLoggingSupport
- java.lang.Object
-
- org.apache.cassandra.utils.logging.NoOpFallbackLoggingSupport
-
- All Implemented Interfaces:
LoggingSupport
public class NoOpFallbackLoggingSupport extends java.lang.Object implements LoggingSupport
A fallback implementation with empty implementations which ensures other slf4j bindings (logging implementations) than the default supported framework can be used. This loses functionality, but is perfectly fine for most integration test requirements of applications using an embedded cassandra server.
-
-
Constructor Summary
Constructors Constructor Description NoOpFallbackLoggingSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getLoggingLevels()
void
setLoggingLevel(java.lang.String classQualifier, java.lang.String rawLevel)
Changes the given logger to the given log level.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.utils.logging.LoggingSupport
getAppender, onShutdown, onStartup
-
-
-
-
Method Detail
-
setLoggingLevel
public void setLoggingLevel(java.lang.String classQualifier, java.lang.String rawLevel) throws java.lang.Exception
Description copied from interface:LoggingSupport
Changes the given logger to the given log level.- Specified by:
setLoggingLevel
in interfaceLoggingSupport
- Parameters:
classQualifier
- the class qualifier or logger namerawLevel
- the string representation of a log level- Throws:
java.lang.Exception
- an exception which may occur while changing the given logger to the given log level.
-
getLoggingLevels
public java.util.Map<java.lang.String,java.lang.String> getLoggingLevels()
- Specified by:
getLoggingLevels
in interfaceLoggingSupport
- Returns:
- a map of logger names and their associated log level as string representations.
-
-