Class SplunkErrorCallback

java.lang.Object
io.quarkiverse.logging.splunk.SplunkErrorCallback
All Implemented Interfaces:
com.splunk.logging.HttpEventCollectorErrorHandler.ErrorCallback

public class SplunkErrorCallback extends Object implements com.splunk.logging.HttpEventCollectorErrorHandler.ErrorCallback
  • Constructor Details

    • SplunkErrorCallback

      public SplunkErrorCallback()
    • SplunkErrorCallback

      public SplunkErrorCallback(PrintStream stdout, PrintStream stderr)
      For unit tests
  • Method Details

    • error

      public void error(List<com.splunk.logging.HttpEventCollectorEventInfo> list, Exception e)
      Logs the original event to stdout (if console handler is disabled). Logs the error to stderr.
      Specified by:
      error in interface com.splunk.logging.HttpEventCollectorErrorHandler.ErrorCallback