Skip to main content
Version: 8.7.x

bfgutils.bfgLog Class

This class handles all of the logging for the SDK. More...

Static Public Member Functions

static int d (@NonNull final String tag, @NonNull final String msg)
 Send a DEBUG log message to the logcat and to Crashlytics. More...
 
static int e (@NonNull final String tag, @NonNull final String msg)
 Send an ERROR log message to the logcat and to Crashlytics. More...
 
static int i (@NonNull final String tag, @NonNull final String msg)
 Send a INFO log message to the logcat and to Crashlytics. More...
 
static int v (@NonNull final String tag, @NonNull final String msg)
 Send a VERBOSE log message to the logcat and to Crashlytics. More...
 
static int w (@NonNull final String tag, @NonNull final String msg)
 Send a WARN log message to the logcat and to Crashlytics. More...
 

Detailed Description

This class handles all of the logging for the SDK. It is closely tied to Crashlytics logging as well. We will log the output to Crashlytics if it's a release build of the SDK. In that case, the additional context of having the log statements will help in diagnosing crashes that come into the Crashlytics dashboard.
Since
6.0

Member Function Documentation

◆ d()

static int com.bigfishgames.bfglib.bfgutils.bfgLog.d (@NonNull final String tag,
@NonNull final String msg 
)
inlinestatic
Send a DEBUG log message to the logcat and to Crashlytics.
Parameters
tagUsed to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
msgThe message you would like logged.

◆ e()

static int com.bigfishgames.bfglib.bfgutils.bfgLog.e (@NonNull final String tag,
@NonNull final String msg 
)
inlinestatic
Send an ERROR log message to the logcat and to Crashlytics.
Parameters
tagUsed to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
msgThe message you would like logged.

◆ i()

static int com.bigfishgames.bfglib.bfgutils.bfgLog.i (@NonNull final String tag,
@NonNull final String msg 
)
inlinestatic
Send a INFO log message to the logcat and to Crashlytics.
Parameters
tagUsed to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
msgThe message you would like logged.

◆ v()

static int com.bigfishgames.bfglib.bfgutils.bfgLog.v (@NonNull final String tag,
@NonNull final String msg 
)
inlinestatic
Send a VERBOSE log message to the logcat and to Crashlytics.
Parameters
tagUsed to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
msgThe message you would like logged.

◆ w()

static int com.bigfishgames.bfglib.bfgutils.bfgLog.w (@NonNull final String tag,
@NonNull final String msg 
)
inlinestatic
Send a WARN log message to the logcat and to Crashlytics.
Parameters
tagUsed to identify the source of a log message. It usually identifies the class or activity where the log call occurs.
msgThe message you would like logged.