Class SplunkLogHandler

java.lang.Object
java.util.logging.Handler
org.jboss.logmanager.ExtHandler
io.quarkiverse.logging.splunk.SplunkLogHandler
All Implemented Interfaces:
Flushable, AutoCloseable

public class SplunkLogHandler extends org.jboss.logmanager.ExtHandler
  • Field Summary

    Fields inherited from class org.jboss.logmanager.ExtHandler

    handlers, handlersUpdater, lock
  • Constructor Summary

    Constructors
    Constructor
    Description
    SplunkLogHandler(com.splunk.logging.HttpEventCollectorSender sender, boolean includeException, boolean includeLoggerName, boolean includeThreadName, boolean disableCertificateValidation, long retriesOnError)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    doPublish(org.jboss.logmanager.ExtLogRecord record)
     
    void
    void
    setFilter(Filter newFilter)
     

    Methods inherited from class org.jboss.logmanager.ExtHandler

    addHandler, checkAccess, checkAccess, clearHandlers, getCharset, getEncoding, getErrorManager, getFilter, getFormatter, getHandlers, getLevel, isAutoFlush, isCallerCalculationRequired, isCloseChildren, isEnabled, publish, publish, publishToNestedHandlers, removeHandler, reportError, reportError, setAutoFlush, setCharset, setCharsetPrivate, setCloseChildren, setEnabled, setEncoding, setErrorManager, setFormatter, setHandlers, setLevel

    Methods inherited from class java.util.logging.Handler

    isLoggable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SplunkLogHandler

      public SplunkLogHandler(com.splunk.logging.HttpEventCollectorSender sender, boolean includeException, boolean includeLoggerName, boolean includeThreadName, boolean disableCertificateValidation, long retriesOnError)
  • Method Details

    • doPublish

      public void doPublish(org.jboss.logmanager.ExtLogRecord record)
      Overrides:
      doPublish in class org.jboss.logmanager.ExtHandler
    • flush

      public void flush()

      Warning: explicit calls to flush bypass event batching checks, so events are sent too early. Do not rely on APIs calling flush directly, like the AsyncHandler's autoflush mechanism.

      Specified by:
      flush in interface Flushable
      Overrides:
      flush in class org.jboss.logmanager.ExtHandler
    • close

      public void close() throws SecurityException
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class org.jboss.logmanager.ExtHandler
      Throws:
      SecurityException
    • setFilter

      public void setFilter(Filter newFilter) throws SecurityException
      Overrides:
      setFilter in class org.jboss.logmanager.ExtHandler
      Throws:
      SecurityException