Package io.scanbot.sdk.util.log
Class DebugLog
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
LOG_DIRECTORY
public final static String
LOG_EXTENSION
-
Method Summary
Modifier and Type Method Description Unit
d(String tag, String message)
Writes tag and message to the log file and also calls Log.d with given params. final Unit
d(String message)
Unit
w(String tag, String message)
Writes tag and message to the log file and also calls Log.w with given params. final Unit
w(String message)
Unit
e(String tag, String message)
Writes tag and message to the log file and also calls Log.e with given params. final Unit
e(String tag, String where, Throwable e)
Writes a message about exception to system log and to the file. final Unit
e(String message)
Unit
i(String tag, String message)
Writes tag and message to the log file and also calls Log.i with given params. final Unit
i(String message)
Unit
logException(Throwable e)
Shows log for exception Unit
logMethod()
Shows log for invoked method -
-
Constructor Detail
-
DebugLog
DebugLog(Context context)
-
-
Method Detail
-
d
Unit d(String tag, String message)
Writes tag and message to the log file and also calls Log.d with given params.
-
w
Unit w(String tag, String message)
Writes tag and message to the log file and also calls Log.w with given params.
-
e
Unit e(String tag, String message)
Writes tag and message to the log file and also calls Log.e with given params.
-
e
final Unit e(String tag, String where, Throwable e)
Writes a message about exception to system log and to the file.
- Parameters:
tag
- tag stringwhere
- a string describing where the exception happenede
- an exception which class name and message will be saved in log
-
i
Unit i(String tag, String message)
Writes tag and message to the log file and also calls Log.i with given params.
-
logException
Unit logException(Throwable e)
Shows log for exception
- Parameters:
e
-Throwable for this error
-
-
-
-