DebugLog

class DebugLog(context: Context?) : Logger

Enables logging to system log/sdcard file.

Constructors

Link copied to clipboard
constructor(context: Context?)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun d(message: String?)

open override fun d(tag: String?, message: String?)

Writes tag and message to the log file and also calls Log.d with given params.

Link copied to clipboard
fun e(message: String?)

open override fun e(tag: String?, message: String?)

Writes tag and message to the log file and also calls Log.e with given params.

fun e(tag: String?, where: String?, e: Throwable)

Writes a message about exception to system log and to the file.

Link copied to clipboard
fun i(message: String?)

open override fun i(tag: String?, message: String?)

Writes tag and message to the log file and also calls Log.i with given params.

Link copied to clipboard
open override fun logException(e: Throwable?)

Shows log for exception

Link copied to clipboard
open override fun logMethod()

Shows log for invoked method

Link copied to clipboard
fun w(message: String?)

open override fun w(tag: String?, message: String?)

Writes tag and message to the log file and also calls Log.w with given params.