public class

FLogDefaultLoggingDelegate

extends Object
implements LoggingDelegate
java.lang.Object
   ↳ com.facebook.common.logging.FLogDefaultLoggingDelegate

Class Overview

Default implementation of LoggingDelegate.

Summary

Fields
public static final FLogDefaultLoggingDelegate sInstance
Public Methods
void d(String tag, String msg, Throwable tr)
Send a DEBUG log message and log the exception.
void d(String tag, String msg)
Send a DEBUG log message.
void e(String tag, String msg)
Send an ERROR log message.
void e(String tag, String msg, Throwable tr)
Send a ERROR log message and log the exception.
static FLogDefaultLoggingDelegate getInstance()
int getMinimumLoggingLevel()
Gets a minimum log-level under which the logger will not log regardless of other checks.
void i(String tag, String msg, Throwable tr)
Send a INFO log message and log the exception.
void i(String tag, String msg)
Send an INFO log message.
boolean isLoggable(int level)
Gets whether the specified level is loggable.
void log(int priority, String tag, String msg)
Logs a message.
void setApplicationTag(String tag)
Sets an application tag that is used for checking if a log line is loggable and also to prefix to all log lines.
void setMinimumLoggingLevel(int level)
Sets a minimum log-level under which the logger will not log regardless of other checks.
void v(String tag, String msg)
Send a VERBOSE log message.
void v(String tag, String msg, Throwable tr)
Send a VERBOSE log message and log the exception.
void w(String tag, String msg, Throwable tr)
Send a WARN log message and log the exception.
void w(String tag, String msg)
Send a WARN log message.
void wtf(String tag, String msg)

Note: this gets forwarded to android.util.Log.e as android.util.Log.wtf might crash the app.

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

Note: this gets forwarded to android.util.Log.e as android.util.Log.wtf might crash the app.

[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.common.logging.LoggingDelegate

Fields

public static final FLogDefaultLoggingDelegate sInstance

Public Methods

public 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 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 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 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 static FLogDefaultLoggingDelegate getInstance ()

public int getMinimumLoggingLevel ()

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

Returns
  • the minimum level

public 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 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 boolean isLoggable (int level)

Gets whether the specified level is loggable.

Parameters
level the level to check
Returns
  • the level

public 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 void setApplicationTag (String tag)

Sets an application tag that is used for checking if a log line is loggable and also to prefix to all log lines.

Parameters
tag the tag

public 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 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 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 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 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 void wtf (String tag, String msg)

Note: this gets forwarded to android.util.Log.e as android.util.Log.wtf might crash the app.

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

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

Note: this gets forwarded to android.util.Log.e as android.util.Log.wtf might crash the app.

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.