Back to Fresco

FLogDefaultLoggingDelegate

docs/javadoc/reference/com/facebook/common/logging/FLogDefaultLoggingDelegate.html

3.6.022.3 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Packages | Classes

Summary: Fields | Methods | Inherited Methods | [Expand All]

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
Public Methods
void
Send a DEBUG log message and log the exception.
void
Send a DEBUG log message.
void
Send an ERROR log message.
void
Send a ERROR log message and log the exception.
static FLogDefaultLoggingDelegate
int
Gets a minimum log-level under which the logger will not log regardless of other checks.
void
Send a INFO log message and log the exception.
void
Send an INFO log message.
boolean
Gets whether the specified level is loggable.
void
Logs a message.
void
Sets an application tag that is used for checking if a log line is loggable and also to prefix to all log lines.
void
Sets a minimum log-level under which the logger will not log regardless of other checks.
void
Send a VERBOSE log message.
void
Send a VERBOSE log message and log the exception.
void
Send a WARN log message and log the exception.
void
Send a WARN log message.
void
Note: this gets forwarded to android.util.Log.e as android.util.Log.wtf might crash the app.
void
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

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface com.facebook.common.logging.LoggingDelegate

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

|

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

+Generated by Doclava. +