Package io.sentry
Class SentryOptions.Logs
java.lang.Object
io.sentry.SentryOptions.Logs
- Enclosing class:
- SentryOptions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe BeforeSendLog callback -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable SentryOptions.Logs.BeforeSendLogCallbackReturns the BeforeSendLog callbackbooleanWhether Sentry Logs feature is enabled and Sentry.logger() usages are sent to Sentry.voidsetBeforeSend(@Nullable SentryOptions.Logs.BeforeSendLogCallback beforeSendLog) Sets the beforeSendLog callbackvoidsetEnabled(boolean enableLogs) Whether Sentry Logs feature is enabled and Sentry.logger() usages are sent to Sentry.
-
Constructor Details
-
Logs
public Logs()
-
-
Method Details
-
isEnabled
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
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
Returns the BeforeSendLog callback- Returns:
- the beforeSendLog callback or null if not set
-
setBeforeSend
public void setBeforeSend(@Nullable @Nullable SentryOptions.Logs.BeforeSendLogCallback beforeSendLog) Sets the beforeSendLog callback- Parameters:
beforeSendLog- the beforeSendLog callback
-