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();
}
| Constructor and Description |
|---|
StacklessLogging(java.lang.Class<?>... classesToSquelch) |
StacklessLogging(Logger... logs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
public StacklessLogging(java.lang.Class<?>... classesToSquelch)
public StacklessLogging(Logger... logs)
Copyright © 1995–2021 Webtide. All rights reserved.