Package com.pspdfkit.utils
Interface PdfLog.Logger
-
- All Implemented Interfaces:
public interface PdfLog.Logger
Interface for custom loggers that can be registered in PdfLog to implement custom logging strategies.
-
-
Method Summary
Modifier and Type Method Description boolean
isLogged(int priority, @NonNull() String tag)
Override this method to enable or disable logging for log with given priority
andtag
.abstract void
log(int priority, @NonNull() String tag, @NonNull() String message, @Nullable() Throwable throwable)
Implement this method to log messages. -
-
Method Detail
-
isLogged
boolean isLogged(int priority, @NonNull() String tag)
Override this method to enable or disable logging for log with given
priority
andtag
. 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.
-
log
abstract void log(int priority, @NonNull() String tag, @NonNull() String message, @Nullable() 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.
-
-
-
-