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