All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.dropwizard.logging.LoggingFactory Maven / Gradle / Ivy

There is a newer version: 5.0.0-alpha.5
Show newest version
package io.dropwizard.logging;

import com.codahale.metrics.MetricRegistry;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.dropwizard.jackson.Discoverable;

@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", defaultImpl = DefaultLoggingFactory.class)
public interface LoggingFactory extends Discoverable {
    void configure(MetricRegistry metricRegistry, String name);

    /** Should flush all log messages but not disable logging */
    void stop();

    /** Mainly useful in testing to reset the logging to a sane default before
     *  the next test configures logging to a desired level. */
    void reset();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy