Class StacklessLogging

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    @Deprecated
    public class StacklessLogging
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Deprecated.
    This api is not supported anymore. Please do not use it.
    A try-with-resources compatible layer for 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 Detail

      • StacklessLogging

        public StacklessLogging​(java.lang.Class<?>... classesToSquelch)
        Deprecated.
      • StacklessLogging

        public StacklessLogging​(Logger... logs)
        Deprecated.
    • Method Detail

      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable