public interface

LoggingDelegate

com.facebook.common.logging.LoggingDelegate
Known Indirect Subclasses

Class Overview

Logging interface

Summary

Public Methods
abstract void d(String tag, String msg, Throwable tr)
Send a DEBUG log message and log the exception.
abstract void d(String tag, String msg)
Send a DEBUG log message.
abstract void e(String tag, String msg)
Send an ERROR log message.
abstract void e(String tag, String msg, Throwable tr)
Send a ERROR log message and log the exception.
abstract int getMinimumLoggingLevel()
Gets a minimum log-level under which the logger will not log regardless of other checks.
abstract void i(String tag, String msg, Throwable tr)
Send a INFO log message and log the exception.
abstract void i(String tag, String msg)
Send an INFO log message.
abstract boolean isLoggable(int level)
Gets whether the specified level is loggable.
abstract void log(int priority, String tag, String msg)
Logs a message.
abstract void setMinimumLoggingLevel(int level)
Sets a minimum log-level under which the logger will not log regardless of other checks.
abstract void v(String tag, String msg)
Send a VERBOSE log message.
abstract void v(String tag, String msg, Throwable tr)
Send a VERBOSE log message and log the exception.
abstract void w(String tag, String msg, Throwable tr)
Send a WARN log message and log the exception.
abstract void w(String tag, String msg)
Send a WARN log message.
abstract void wtf(String tag, String msg)
Send an ERROR log message.
abstract void wtf(String tag, String msg, Throwable tr)
Send an ERROR log message.

Public Methods

public abstract void d (String tag, String msg, Throwable tr)

Send a DEBUG log message and log the exception.

Parameters
tag Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
msg The message you would like logged.
tr An exception to log

public abstract void d (String tag, String msg)

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.
msg The message you would like logged.

public abstract void e (String tag, String msg)

Send an 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.
msg The message you would like logged.

public abstract void e (String tag, String msg, Throwable tr)

Send a ERROR log message and log the exception.

Parameters
tag Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
msg The message you would like logged.
tr An exception to log

public abstract int getMinimumLoggingLevel ()

Gets a minimum log-level under which the logger will not log regardless of other checks.

Returns
  • the minimum level

public abstract void i (String tag, String msg, Throwable tr)

Send a INFO log message and log the exception.

Parameters
tag Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
msg The message you would like logged.
tr An exception to log

public abstract void i (String tag, String msg)

Send an 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.
msg The message you would like logged.

public abstract boolean isLoggable (int level)

Gets whether the specified level is loggable.

Parameters
level the level to check
Returns
  • the level

public abstract void log (int priority, String tag, String msg)

Logs a message.

Parameters
priority the priority of the message
tag Used to identify the source of a log message.
msg The message you would like logged.

public abstract void setMinimumLoggingLevel (int level)

Sets a minimum log-level under which the logger will not log regardless of other checks.

Parameters
level the minimum level to set

public abstract void v (String tag, String msg)

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.
msg The message you would like logged.

public abstract void v (String tag, String msg, Throwable tr)

Send a VERBOSE log message and log the exception.

Parameters
tag Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
msg The message you would like logged.
tr An exception to log

public abstract void w (String tag, String msg, Throwable tr)

Send a WARN log message and log the exception.

Parameters
tag Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
msg The message you would like logged.
tr An exception to log

public abstract void w (String tag, String msg)

Send a WARN 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.
msg The message you would like logged.

public abstract void wtf (String tag, String msg)

Send an ERROR log message. Send wtf soft error report (sampled). Note: This is not equivalent of wtf(String, String).

Parameters
tag Used to identify the source of a log message.
msg The message you would like logged.

public abstract void wtf (String tag, String msg, Throwable tr)

Send an ERROR log message. Send wtf soft error report (sampled). Note: This is not equivalent of wtf(String, String).

Parameters
tag Used to identify the source of a log message.
msg The message you would like logged.
tr An exception to log. May be null.