Class ExternalLoggingFactory

  • All Implemented Interfaces:
    Discoverable, LoggingFactory

    public class ExternalLoggingFactory
    extends Object
    implements LoggingFactory
    A logging factory which does configure a logging infrastructure. Useful when the users doesn't want to use the Dropwizard logging configuration abilities.
    • Constructor Detail

      • ExternalLoggingFactory

        public ExternalLoggingFactory()
    • Method Detail

      • configure

        public void configure​(com.codahale.metrics.MetricRegistry metricRegistry,
                              String name)
        Specified by:
        configure in interface LoggingFactory
      • stop

        public void stop()
        Description copied from interface: LoggingFactory
        Should flush all log messages but not disable logging
        Specified by:
        stop in interface LoggingFactory
      • 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 interface LoggingFactory