Class LogbackLevelOverrideExtension

java.lang.Object
ca.uhn.fhir.test.utilities.LogbackLevelOverrideExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.Extension

public class LogbackLevelOverrideExtension extends Object implements org.junit.jupiter.api.extension.AfterEachCallback
Extension to allow temporary log elevation for a single test.
  • Constructor Details

  • Method Details

    • setLogLevel

      public void setLogLevel(Class theClass, ch.qos.logback.classic.Level theLevel)
    • afterEach

      public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback
      Throws:
      Exception
    • resetLevel

      public void resetLevel(Class theClass)