public static interface

PdfLog.Logger

com.pspdfkit.utils.PdfLog.Logger
Known Indirect Subclasses

Class Overview

Interface for custom loggers that can be registered in PdfLog to implement custom logging strategies.

Summary

Public Methods
abstract boolean isLogged(int priority, String tag)
Override this method to enable or disable logging for log with given priority and tag.
abstract void log(int priority, String tag, String message, Throwable throwable)
Implement this method to log messages.

Public Methods

public abstract boolean isLogged (int priority, String tag)

Override this method to enable or disable logging for log with given priority and tag. By default all log requests are handled.

Parameters
priority The priority of this log message.
tag Tag to identify the source of this log message.

public abstract void log (int priority, String tag, String message, Throwable throwable)

Implement this method to log messages.

Parameters
priority The priority of this log message.
tag Tag to identify the source of this log message.
message Message that should be logged.
throwable Optional throwable attached to log message.