Package io.dropwizard.logging.common
Class DefaultLoggingFactory
java.lang.Object
io.dropwizard.logging.common.DefaultLoggingFactory
- All Implemented Interfaces:
Discoverable
,LoggingFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
List<AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>>
getLevel()
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
setAppenders
(List<AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>> appenders) void
void
setLoggers
(Map<String, com.fasterxml.jackson.databind.JsonNode> loggers) void
stop()
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:
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
-
toString
-