Package io.sentry
Class DiagnosticLogger
java.lang.Object
io.sentry.DiagnosticLogger
- All Implemented Interfaces:
ILogger
Sentry SDK internal diagnostic logger.
-
Constructor Summary
ConstructorDescriptionDiagnosticLogger
(@NotNull SentryOptions options, @Nullable ILogger logger) Creates a new instance of DiagnosticLogger with the wrapped ILogger. -
Method Summary
Modifier and TypeMethodDescription@Nullable ILogger
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 throwable.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.
-
Constructor Details
-
DiagnosticLogger
public DiagnosticLogger(@NotNull @NotNull SentryOptions options, @Nullable @Nullable ILogger logger) Creates a new instance of DiagnosticLogger with the wrapped ILogger.- Parameters:
options
- a SentryOptions instancelogger
- a ILogger instance
-
-
Method Details
-
isEnabled
Whether this logger is enabled for the specified SentryLevel. -
log
public void log(@NotNull @NotNull SentryLevel level, @NotNull @NotNull String message, @Nullable @Nullable Object... args) 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) Logs a message with the specified level, message and throwable. -
log
public void log(@NotNull @NotNull SentryLevel level, @Nullable @Nullable Throwable throwable, @NotNull @NotNull String message, @Nullable @Nullable Object... args) Logs a message with the specified level, throwable, message and optional arguments. -
getLogger
-