Package io.sentry

Class SentryOptions.Logs

java.lang.Object
io.sentry.SentryOptions.Logs
Enclosing class:
SentryOptions

public static final class SentryOptions.Logs extends Object
  • Constructor Details

    • Logs

      public Logs()
  • Method Details

    • isEnabled

      @Experimental public boolean isEnabled()
      Whether Sentry Logs feature is enabled and Sentry.logger() usages are sent to Sentry.
      Returns:
      true if Sentry Logs should be enabled
    • setEnabled

      @Experimental public void setEnabled(boolean enableLogs)
      Whether Sentry Logs feature is enabled and Sentry.logger() usages are sent to Sentry.
      Parameters:
      enableLogs - true if Sentry Logs should be enabled
    • getBeforeSend

      @Experimental @Nullable public @Nullable SentryOptions.Logs.BeforeSendLogCallback getBeforeSend()
      Returns the BeforeSendLog callback
      Returns:
      the beforeSendLog callback or null if not set
    • setBeforeSend

      @Experimental public void setBeforeSend(@Nullable @Nullable SentryOptions.Logs.BeforeSendLogCallback beforeSendLog)
      Sets the beforeSendLog callback
      Parameters:
      beforeSendLog - the beforeSendLog callback