Class PdfLog

  • All Implemented Interfaces:

    
    public final class PdfLog
    
                        

    Logger used for logging inside PSPDFKit.

    This API allows injection of custom Logger implementations that can be used to achieve custom logging strategies for PSPDFKit framework logs.

    Note: The default Logger only logs messages with priority Log#INFO or higher to LogCat.

    • Constructor Detail

      • PdfLog

        PdfLog()
    • Method Detail

      • removeAllLoggers

         static void removeAllLoggers()

        Removes all registered loggers. Effectively disables logging.

      • v

         static void v(@NonNull() String tag, @NonNull() Callable<String> messageCallback)

        Logs a VERBOSE log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        messageCallback - Callback returning the log message.
      • v

         static void v(@NonNull() String tag, @Nullable() String message, @NonNull() Array<Object> args)

        Logs a VERBOSE log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        message - The message to logged.
        args - Optional arguments referenced by the format specifiers in the message.
      • v

         static void v(@NonNull() String tag, @Nullable() Throwable t, @Nullable() String message, @NonNull() Array<Object> args)

        Logs a VERBOSE log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        t - Optional exception to log.
        message - The message to logged.
        args - Optional arguments referenced by the format specifiers in the message.
      • d

         static void d(@NonNull() String tag, @NonNull() Callable<String> messageCallback)

        Logs a DEBUG log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        messageCallback - Callback returning the log message.
      • d

         static void d(@NonNull() String tag, @Nullable() String message, @NonNull() Array<Object> args)

        Logs a DEBUG log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        message - The message to logged.
        args - Optional arguments referenced by the format specifiers in the message.
      • d

         static void d(@NonNull() String tag, @Nullable() Throwable t, @Nullable() String message, @NonNull() Array<Object> args)

        Logs a DEBUG log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        t - Optional exception to log.
        message - The message to logged.
        args - Optional arguments referenced by the format specifiers in the message.
      • i

         static void i(@NonNull() String tag, @NonNull() Callable<String> messageCallback)

        Logs a INFO log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        messageCallback - Callback returning the log message.
      • i

         static void i(@NonNull() String tag, @Nullable() String message, @NonNull() Array<Object> args)

        Logs a INFO log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        message - The message to logged.
        args - Optional arguments referenced by the format specifiers in the message.
      • i

         static void i(@NonNull() String tag, @Nullable() Throwable t, @Nullable() String message, @NonNull() Array<Object> args)

        Logs a INFO log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        t - Optional exception to log.
        message - The message to logged.
        args - Optional arguments referenced by the format specifiers in the message.
      • w

         static void w(@NonNull() String tag, @NonNull() Callable<String> messageCallback)

        Logs a WARN log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        messageCallback - Callback returning the log message.
      • w

         static void w(@NonNull() String tag, @Nullable() String message, @NonNull() Array<Object> args)

        Logs a WARN log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        message - The message to logged.
        args - Optional arguments referenced by the format specifiers in the message.
      • w

         static void w(@NonNull() String tag, @Nullable() Throwable t, @Nullable() String message, @NonNull() Array<Object> args)

        Logs a WARN log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        t - Optional exception to log.
        message - The message to logged.
        args - Optional arguments referenced by the format specifiers in the message.
      • e

         static void e(@NonNull() String tag, @NonNull() Callable<String> messageCallback)

        Logs a ERROR log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        messageCallback - Callback returning the log message.
      • e

         static void e(@NonNull() String tag, @Nullable() String message, @NonNull() Array<Object> args)

        Logs a ERROR log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        message - The message to logged.
        args - Optional arguments referenced by the format specifiers in the message.
      • e

         static void e(@NonNull() String tag, @Nullable() Throwable t, @Nullable() String message, @NonNull() Array<Object> args)

        Logs a ERROR log message.

        Parameters:
        tag - Tag identifying the source of a log message.
        t - Optional exception to log.
        message - The message to logged.
        args - Optional arguments referenced by the format specifiers in the message.