Interface Logger


  • public interface Logger
    Logging interface for logging messages in the android-beacon-library. To set a custom logger implement this interface and set it with LogManager.setLogger(Logger).
    Since:
    2.2
    See Also:
    LogManager
    • Method Detail

      • v

        void v​(String tag,
               String message,
               Object... args)
        Send a verbose log message.
        Parameters:
        tag - Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
        message - The message you would like logged. This message may contain string formatting which will be replaced with values from args.
        args - Arguments for string formatting.
        See Also:
        Log.v(String, String), Formatter, String.format(String, Object...)
      • v

        void v​(Throwable t,
               String tag,
               String message,
               Object... args)
        Send a verbose log message.
        Parameters:
        tag - Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
        message - The message you would like logged. This message may contain string formatting which will be replaced with values from args.
        t - An exception to log.
        args - Arguments for string formatting.
        See Also:
        Log.v(String, String, Throwable), Formatter, String.format(String, Object...)
      • d

        void d​(String tag,
               String message,
               Object... args)
        Send a debug log message.
        Parameters:
        tag - Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
        message - The message you would like logged. This message may contain string formatting which will be replaced with values from args.
        args - Arguments for string formatting.
        See Also:
        Log.d(String, String), Formatter, String.format(String, Object...)
      • d

        void d​(Throwable t,
               String tag,
               String message,
               Object... args)
        Send a debug log message.
        Parameters:
        tag - Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
        message - The message you would like logged. This message may contain string formatting which will be replaced with values from args.
        t - An exception to log.
        args - Arguments for string formatting.
        See Also:
        Log.d(String, String, Throwable), Formatter, String.format(String, Object...)
      • i

        void i​(String tag,
               String message,
               Object... args)
        Send a info log message.
        Parameters:
        tag - Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
        message - The message you would like logged. This message may contain string formatting which will be replaced with values from args.
        args - Arguments for string formatting.
        See Also:
        Log.i(String, String), Formatter, String.format(String, Object...)
      • i

        void i​(Throwable t,
               String tag,
               String message,
               Object... args)
        Send a info log message.
        Parameters:
        tag - Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
        message - The message you would like logged. This message may contain string formatting which will be replaced with values from args.
        t - An exception to log.
        args - Arguments for string formatting.
        See Also:
        Log.i(String, String, Throwable), Formatter, String.format(String, Object...)
      • w

        void w​(String tag,
               String message,
               Object... args)
        Send a warning log message.
        Parameters:
        tag - Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
        message - The message you would like logged. This message may contain string formatting which will be replaced with values from args.
        args - Arguments for string formatting.
        See Also:
        Log.w(String, String), Formatter, String.format(String, Object...)
      • w

        void w​(Throwable t,
               String tag,
               String message,
               Object... args)
        Send a warning log message.
        Parameters:
        tag - Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
        message - The message you would like logged. This message may contain string formatting which will be replaced with values from args.
        t - An exception to log.
        args - Arguments for string formatting.
        See Also:
        Log.w(String, String, Throwable), Formatter, String.format(String, Object...)
      • e

        void e​(String tag,
               String message,
               Object... args)
        Send a error log message.
        Parameters:
        tag - Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
        message - The message you would like logged. This message may contain string formatting which will be replaced with values from args.
        args - Arguments for string formatting.
        See Also:
        Log.e(String, String), Formatter, String.format(String, Object...)
      • e

        void e​(Throwable t,
               String tag,
               String message,
               Object... args)
        Send a error log message.
        Parameters:
        tag - Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
        message - The message you would like logged. This message may contain string formatting which will be replaced with values from args.
        t - An exception to log.
        args - Arguments for string formatting.
        See Also:
        Log.e(String, String, Throwable), Formatter, String.format(String, Object...)