Package io.sentry

Class SystemOutLogger

java.lang.Object
io.sentry.SystemOutLogger
All Implemented Interfaces:
ILogger

public final class SystemOutLogger extends Object implements ILogger
ILogger implementation to System.out.
  • 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.
      Specified by:
      log in interface ILogger
      Parameters:
      level - The SentryLevel.
      message - The message.
      args - The optional arguments to format the message.
    • 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.
      Specified by:
      log in interface ILogger
      Parameters:
      level - The SentryLevel.
      message - The message.
      throwable - The throwable to log.
    • 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.
      Specified by:
      log in interface ILogger
      Parameters:
      level - The SentryLevel.
      throwable - The throwable to log.
      message - The message.
      args - The optional arguments to format the message.
    • isEnabled

      public boolean isEnabled(@Nullable @Nullable SentryLevel level)
      Description copied from interface: ILogger
      Whether this logger is enabled for the specified SentryLevel.
      Specified by:
      isEnabled in interface ILogger
      Parameters:
      level - The SentryLevel to test against.
      Returns:
      True if a log message would be recorded for the level. Otherwise false.