Class TestAppender$


  • public class TestAppender$
    extends java.lang.Object
    INTERNAL API

    The TestAppender emits the logging events to the registered LoggingTestKitImpl, which are added and removed to the appender dynamically from tests.

    TestAppender is currently requiring Logback as SLF4J implementation. Similar can probably be implemented with other backends, such as Log4j2.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static TestAppender$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      TestAppender$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFilter​(java.lang.String loggerName, akka.actor.testkit.typed.internal.LoggingTestKitImpl filter)  
      void removeFilter​(java.lang.String loggerName, akka.actor.testkit.typed.internal.LoggingTestKitImpl filter)  
      void setupTestAppender​(java.lang.String loggerName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final TestAppender$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • TestAppender$

        public TestAppender$()
    • Method Detail

      • setupTestAppender

        public void setupTestAppender​(java.lang.String loggerName)
      • addFilter

        public void addFilter​(java.lang.String loggerName,
                              akka.actor.testkit.typed.internal.LoggingTestKitImpl filter)
      • removeFilter

        public void removeFilter​(java.lang.String loggerName,
                                 akka.actor.testkit.typed.internal.LoggingTestKitImpl filter)