public class

LogCatLogger

extends Object
implements PdfLog.Logger
java.lang.Object
   ↳ com.pspdfkit.utils.LogCatLogger

Class Overview

Logger that logs all messages to LogCat.

Summary

Public Constructors
LogCatLogger()
Public Methods
boolean isLogged(int priority, String tag)
Override this method to enable or disable logging for log with given priority and tag.
void log(int priority, String tag, String message, Throwable throwable)
Implement this method to log messages.
void setEnabled(boolean isEnabled)
Sets whether this logger is enabled.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pspdfkit.utils.PdfLog.Logger

Public Constructors

public LogCatLogger ()

Public Methods

public 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 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.

public void setEnabled (boolean isEnabled)

Sets whether this logger is enabled. If enabled, all logs are printed to LogCat. If disabled, all logs are ignored.

Parameters
isEnabled Prints all logs to LogCat if true, ignores all logs when false.