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 void
configure(com.codahale.metrics.MetricRegistry metricRegistry, String name)
void
reset()
Mainly useful in testing to reset the logging to a sane default before the next test configures logging to a desired level.void
stop()
Should flush all log messages but not disable logging
-
-
-
Method Detail
-
configure
public void configure(com.codahale.metrics.MetricRegistry metricRegistry, String name)
- Specified by:
configure
in interfaceLoggingFactory
-
stop
public void stop()
Description copied from interface:LoggingFactory
Should flush all log messages but not disable logging- Specified by:
stop
in interfaceLoggingFactory
-
reset
public void reset()
Description copied from interface:LoggingFactory
Mainly useful in testing to reset the logging to a sane default before the next test configures logging to a desired level.- Specified by:
reset
in interfaceLoggingFactory
-
-