Package io.sentry
Class NoOpLogger
java.lang.Object
io.sentry.NoOpLogger
- All Implemented Interfaces:
ILogger
No-op implementation of ILogger
-
Method Summary
Modifier and TypeMethodDescriptionstatic NoOpLogger
boolean
isEnabled
(@Nullable SentryLevel level) Whether this logger is enabled for the specified SentryLevel.void
log
(@NotNull SentryLevel level, @NotNull String message, @Nullable Object... args) Logs a message with the specified level, message and optional arguments.void
log
(@NotNull SentryLevel level, @NotNull String message, @Nullable Throwable throwable) Logs a message with the specified level, message and optional arguments.void
log
(@NotNull SentryLevel level, @Nullable Throwable throwable, @NotNull String message, @Nullable Object... args) Logs a message with the specified level, throwable, message and optional arguments.
-
Method Details
-
getInstance
-
log
public void log(@NotNull @NotNull SentryLevel level, @NotNull @NotNull String message, @Nullable @Nullable Object... args) Description copied from interface:ILogger
Logs a message with the specified level, message and optional arguments. -
log
public void log(@NotNull @NotNull SentryLevel level, @NotNull @NotNull String message, @Nullable @Nullable Throwable throwable) Description copied from interface:ILogger
Logs a message with the specified level, message and optional arguments. -
log
public void log(@NotNull @NotNull SentryLevel level, @Nullable @Nullable Throwable throwable, @NotNull @NotNull String message, @Nullable @Nullable Object... args) Description copied from interface:ILogger
Logs a message with the specified level, throwable, message and optional arguments. -
isEnabled
Description copied from interface:ILogger
Whether this logger is enabled for the specified SentryLevel.
-