Constructor and Description |
---|
DiagnosticLogger(@NotNull SentryOptions options,
@Nullable ILogger logger)
Creates a new instance of DiagnosticLogger with the wrapped ILogger.
|
Modifier and Type | Method and Description |
---|---|
@Nullable ILogger |
getLogger() |
boolean |
isEnabled(@Nullable SentryLevel level)
Whether this logger is enabled for the specified SentryLevel.
|
void |
log(@NotNull SentryLevel level,
@NotNull java.lang.String message,
java.lang.Object... args)
Logs a message with the specified level, message and optional arguments.
|
void |
log(@NotNull SentryLevel level,
@NotNull java.lang.String message,
@Nullable java.lang.Throwable throwable)
Logs a message with the specified level, message and throwable.
|
void |
log(@NotNull SentryLevel level,
@Nullable java.lang.Throwable throwable,
@NotNull java.lang.String message,
java.lang.Object... args)
Logs a message with the specified level, throwable, message and optional arguments.
|
public DiagnosticLogger(@NotNull @NotNull SentryOptions options, @Nullable @Nullable ILogger logger)
options
- a SentryOptions instancelogger
- a ILogger instancepublic boolean isEnabled(@Nullable @Nullable SentryLevel level)
public void log(@NotNull @NotNull SentryLevel level, @NotNull @NotNull java.lang.String message, @Nullable java.lang.Object... args)
public void log(@NotNull @NotNull SentryLevel level, @NotNull @NotNull java.lang.String message, @Nullable @Nullable java.lang.Throwable throwable)
public void log(@NotNull @NotNull SentryLevel level, @Nullable @Nullable java.lang.Throwable throwable, @NotNull @NotNull java.lang.String message, @Nullable java.lang.Object... args)
@TestOnly @Nullable public @Nullable ILogger getLogger()