Package io.sentry.jul

Class SentryHandler

java.lang.Object
java.util.logging.Handler
io.sentry.jul.SentryHandler

public class SentryHandler extends Handler
Logging handler in charge of sending the java.util.logging records to a Sentry server.
  • Field Details

  • Constructor Details

    • SentryHandler

      public SentryHandler()
      Creates an instance of SentryHandler.
    • SentryHandler

      public SentryHandler(@NotNull @NotNull SentryOptions options)
      Creates an instance of SentryHandler.
      Parameters:
      options - the SentryOptions
  • Method Details

    • publish

      public void publish(@NotNull @NotNull LogRecord record)
      Specified by:
      publish in class Handler
    • flush

      public void flush()
      Specified by:
      flush in class Handler
    • close

      public void close() throws SecurityException
      Specified by:
      close in class Handler
      Throws:
      SecurityException
    • setPrintfStyle

      public void setPrintfStyle(boolean printfStyle)
    • setMinimumBreadcrumbLevel

      public void setMinimumBreadcrumbLevel(@Nullable @Nullable Level minimumBreadcrumbLevel)
    • getMinimumBreadcrumbLevel

      @NotNull public @NotNull Level getMinimumBreadcrumbLevel()
    • setMinimumEventLevel

      public void setMinimumEventLevel(@Nullable @Nullable Level minimumEventLevel)
    • getMinimumEventLevel

      @NotNull public @NotNull Level getMinimumEventLevel()
    • isPrintfStyle

      public boolean isPrintfStyle()