Package io.dropwizard.logging.common
Class ExternalLoggingFactory
- java.lang.Object
-
- io.dropwizard.logging.common.ExternalLoggingFactory
-
- All Implemented Interfaces:
Discoverable,LoggingFactory
public class ExternalLoggingFactory extends Object implements LoggingFactory
A no-op logging factory to use when logging is configured independently of Dropwizard.
-
-
Constructor Summary
Constructors Constructor Description ExternalLoggingFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(com.codahale.metrics.MetricRegistry metricRegistry, String name)voidreset()Mainly useful in testing to reset the logging to a sane default before the next test configures logging to a desired level.voidstop()Should flush all log messages but not disable logging
-
-
-
Method Detail
-
configure
public void configure(com.codahale.metrics.MetricRegistry metricRegistry, String name)- Specified by:
configurein interfaceLoggingFactory
-
stop
public void stop()
Description copied from interface:LoggingFactoryShould flush all log messages but not disable logging- Specified by:
stopin interfaceLoggingFactory
-
reset
public void reset()
Description copied from interface:LoggingFactoryMainly useful in testing to reset the logging to a sane default before the next test configures logging to a desired level.- Specified by:
resetin interfaceLoggingFactory
-
-