Class DefaultLoggingFactory

java.lang.Object
io.dropwizard.logging.common.DefaultLoggingFactory
All Implemented Interfaces:
Discoverable, LoggingFactory

public class DefaultLoggingFactory extends Object implements LoggingFactory
  • Constructor Details

    • DefaultLoggingFactory

      public DefaultLoggingFactory()
  • Method Details

    • getLevel

      public String getLevel()
    • setLevel

      public void setLevel(String level)
    • getLoggers

      public Map<String,com.fasterxml.jackson.databind.JsonNode> getLoggers()
    • setLoggers

      public void setLoggers(Map<String,com.fasterxml.jackson.databind.JsonNode> loggers)
    • getAppenders

      public List<AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>> getAppenders()
    • setAppenders

      public void setAppenders(List<AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>> appenders)
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object