Package io.micrometer.core.util.internal.logging


package io.micrometer.core.util.internal.logging
Support for testing internal logging.
  • Classes
    Class
    Description
    Simple POJO that represents a log event for test verification purposes.
    Simple implementation of InternalLogger that 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.
    Simple InternalLoggerFactory implementation that always returns an instance of MockLogger so components that fetch the logger this way: InternalLogger logger = InternalLoggerFactory.getInstance(MyClass.class);, get a MockLogger instance if they are created using factory.injectLogger(MyClass::new) or if InternalLoggerFactory.setDefaultFactory(mockLoggerFactory); was set previously.