public class StacklessLogging extends Object implements 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(Class<?>... classesToSquelch) |
StacklessLogging(Logger... logs) |
public StacklessLogging(Class<?>... classesToSquelch)
public StacklessLogging(Logger... logs)
public void close()
close in interface AutoCloseableCopyright © 2010 - 2020 Adobe. All Rights Reserved