Package io.sentry

Class SystemOutLogger

  • All Implemented Interfaces:
    ILogger

    public final class SystemOutLogger
    extends java.lang.Object
    implements ILogger
    ILogger implementation to System.out.
    • Constructor Summary

      Constructors 
      Constructor Description
      SystemOutLogger()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isEnabled​(@Nullable SentryLevel level)
      Whether this logger is enabled for the specified SentryLevel.
      void log​(@NotNull SentryLevel level, @NotNull java.lang.String message, @Nullable java.lang.Object... args)
      Logs to console 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 to console a message with the specified level, message and throwable.
      void log​(@NotNull SentryLevel level, @Nullable java.lang.Throwable throwable, @NotNull java.lang.String message, @Nullable java.lang.Object... args)
      Logs to console a message with the specified level, throwable, message and optional arguments.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SystemOutLogger

        public SystemOutLogger()
    • Method Detail

      • log

        public void log​(@NotNull
                        @NotNull SentryLevel level,
                        @NotNull
                        @NotNull java.lang.String message,
                        @Nullable
                        @Nullable java.lang.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 java.lang.String message,
                        @Nullable
                        @Nullable java.lang.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 java.lang.Throwable throwable,
                        @NotNull
                        @NotNull java.lang.String message,
                        @Nullable
                        @Nullable java.lang.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.