public class StacklessLogging
extends java.lang.Object
implements java.lang.AutoCloseable
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(); }
Modifier and Type | Field and Description |
---|---|
private java.util.Set<StdErrLog> |
squelched |
Constructor and Description |
---|
StacklessLogging(java.lang.Class<?>... classesToSquelch) |
StacklessLogging(Logger... logs) |
Modifier and Type | Method and Description |
---|---|
void |
close() |