Package org.eclipse.jetty.util.log
Class StacklessLogging
- java.lang.Object
-
- org.eclipse.jetty.util.log.StacklessLogging
-
- All Implemented Interfaces:
AutoCloseable
@Deprecated(since="2021-05-27") public class StacklessLogging extends Object implements AutoCloseable
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A try-with-resources compatible layer forhiding stacktraces
within the scope of thetry
block when logging withStdErrLog
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
Constructors Constructor Description StacklessLogging(Class<?>... classesToSquelch)
Deprecated.StacklessLogging(Logger... logs)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.
-
-
-
Method Detail
-
close
public void close()
Deprecated.- Specified by:
close
in interfaceAutoCloseable
-
-