Used to write logging messages.
Extends: | java.lang.Object |
Implements: | - |
Package: | com.mustamara.yaftamobile.utils |
ERROR_LEVEL
Constant that defines the error log level.
public static final int ERROR_LEVEL
WARNING_LEVEL
Constant that defines the warn log level.
public static final int WARNING_LEVEL
DEBUG_LEVEL
Constant that defines the debug log level.
public static final int DEBUG_LEVEL
setIsEnabled
Specifies whether or not logs are enabled. By default, logs are enabled and should be disabled before building your app for release.
public static void setIsEnabled(boolean isEnabled)
|Parameter | Description| |-|-| |isEnabled | true if enabled, else false|
setLogLevel
Set the logging level.
public static void setLogLevel(int level)
|Parameter | Description|
|-|-|
|level |The level at which the message should be logged. Possible values are Logger.ERROR_LEVEL
, Logger.WARNING_LEVEL
and Logger.DEBUG_LEVEL
. |