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