Package org.eclipse.jetty.logging
Class StacklessLogging
java.lang.Object
org.eclipse.jetty.logging.StacklessLogging
- All Implemented Interfaces:
AutoCloseable
A try-with-resources compatible layer for
hiding stacktraces
within the scope of the try
block when
logging with JettyLogger
implementation.
Use of other logging implementation cause no effect when using this class
Example:
try (StacklessLogging scope = new StacklessLogging(EventDriver.class,Noisy.class)) { doActionThatCausesStackTraces(); }
-
Constructor Summary
ConstructorDescriptionStacklessLogging
(Class<?>... classesToSquelch) StacklessLogging
(Package... packagesToSquelch) StacklessLogging
(String... loggerNames) StacklessLogging
(org.slf4j.Logger... logs) -
Method Summary
-
Constructor Details
-
StacklessLogging
-
StacklessLogging
-
StacklessLogging
-
StacklessLogging
public StacklessLogging(org.slf4j.Logger... logs)
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-