Class StorageEventLogger.Default

    • Field Detail

      • messageConsumer

        protected final Consumer<? super String> messageConsumer
    • Method Detail

      • printString

        public static void printString​(String s)
      • stackTraceToString

        public static String stackTraceToString​(Throwable t)
      • log

        public void log​(String s)
      • logDisruption

        public void logDisruption​(StorageChannel channel,
                                  Throwable t)
        Description copied from interface: StorageEventLogger
        Note that not all Throwables are Exceptions. There are also Errors. And not all exceptions are problems. There are also program execution control vehicles like InterruptedException. The actually fitting common term is "Disruption". Throwable is a very low-level technical, compiler-oriented expression.
        Specified by:
        logDisruption in interface StorageEventLogger
        Parameters:
        channel - the affected channel
        t - the reason for the disruption