Package io.sentry
Class SystemOutLogger
java.lang.Object
io.sentry.SystemOutLogger
- All Implemented Interfaces:
ILogger
ILogger implementation to System.out.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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 to console a message with the specified level, message and optional arguments.void
log
(@NotNull SentryLevel level, @NotNull String message, @Nullable Throwable throwable) Logs to console a message with the specified level, message and throwable.void
log
(@NotNull SentryLevel level, @Nullable Throwable throwable, @NotNull String message, @Nullable Object... args) Logs to console a message with the specified level, throwable, message and optional arguments.
-
Constructor Details
-
SystemOutLogger
public SystemOutLogger()
-
-
Method Details
-
log
public void log(@NotNull @NotNull SentryLevel level, @NotNull @NotNull String message, @Nullable @Nullable Object... args) Logs to console 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 to console 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 to console 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.
-