Package io.sentry

Class NoOpLogger

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

public final class NoOpLogger extends Object implements ILogger
No-op implementation of ILogger
  • Method Details

    • getInstance

      public static NoOpLogger 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.
      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)
      Description copied from interface: ILogger
      Logs a message with the specified level, message and optional arguments.
      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)
      Description copied from interface: ILogger
      Logs 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 formatting arguments
    • 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.