Class JerseyHttpLoggingBundle
- java.lang.Object
-
- io.liftwizard.dropwizard.bundle.httplogging.JerseyHttpLoggingBundle
-
- All Implemented Interfaces:
io.dropwizard.ConfiguredBundle<JerseyHttpLoggingFactoryProvider>
public class JerseyHttpLoggingBundle extends Object implements io.dropwizard.ConfiguredBundle<JerseyHttpLoggingFactoryProvider>
Logs all requests and responses to slf4j. The maxEntitySize is configurable.
-
-
Constructor Summary
Constructors Constructor Description JerseyHttpLoggingBundle(Consumer<StructuredArguments> structuredLogger)JerseyHttpLoggingBundle(Consumer<StructuredArguments> structuredLogger, org.eclipse.collections.api.block.function.Function<Principal,Map<String,Object>> principalBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(io.dropwizard.setup.Bootstrap<?> bootstrap)voidrun(JerseyHttpLoggingFactoryProvider configuration, io.dropwizard.setup.Environment environment)
-
-
-
Constructor Detail
-
JerseyHttpLoggingBundle
public JerseyHttpLoggingBundle(@Nonnull Consumer<StructuredArguments> structuredLogger)
-
-
Method Detail
-
initialize
public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
- Specified by:
initializein interfaceio.dropwizard.ConfiguredBundle<JerseyHttpLoggingFactoryProvider>
-
run
public void run(JerseyHttpLoggingFactoryProvider configuration, io.dropwizard.setup.Environment environment) throws Exception
- Specified by:
runin interfaceio.dropwizard.ConfiguredBundle<JerseyHttpLoggingFactoryProvider>- Throws:
Exception
-
-