Package io.micrometer.core.util.internal.logging
package io.micrometer.core.util.internal.logging
Support for testing internal logging.
-
ClassesClassDescriptionSimple POJO that represents a log event for test verification purposes.Simple implementation of
InternalLoggerthat does not produce any output or delegate the work to another logger, instead it stores every log event in memory so that the recorded log events can be fetched and verified by tests.SimpleInternalLoggerFactoryimplementation that always returns an instance ofMockLoggerso components that fetch the logger this way:InternalLogger logger = InternalLoggerFactory.getInstance(MyClass.class);, get aMockLoggerinstance if they are created usingfactory.injectLogger(MyClass::new)or ifInternalLoggerFactory.setDefaultFactory(mockLoggerFactory);was set previously.