Package io.dropwizard.logging.common
Class DefaultLoggingFactory
java.lang.Object
io.dropwizard.logging.common.DefaultLoggingFactory
- All Implemented Interfaces:
io.dropwizard.jackson.Discoverable,LoggingFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidList<AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>>getLevel()voidreset()Mainly useful in testing to reset the logging to a sane default before the next test configures logging to a desired level.voidsetAppenders(List<AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>> appenders) voidvoidsetLoggers(Map<String, com.fasterxml.jackson.databind.JsonNode> loggers) voidstop()Should flush all log messages but not disable loggingtoString()
-
Constructor Details
-
DefaultLoggingFactory
public DefaultLoggingFactory()
-
-
Method Details
-
getLevel
-
setLevel
-
getLoggers
-
setLoggers
-
getAppenders
-
setAppenders
-
configure
- 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
-
toString
-