LogUtil

LogUtils.

See also

Constructors

Link copied to clipboard
internal constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
internal var logEnabled: Boolean

true if you want to print log,false if you don't want to print the log.

Link copied to clipboard

Used to identify the source of a log message. It usually identifies the class or activity where the log call occurs.

Link copied to clipboard
internal var mLogConverter: Converter?

Log json converter.

Link copied to clipboard
internal var mLogPrinter: LogPrinter

Log printer.

Link copied to clipboard
internal var mLogStorage: LogStorage?

Log storage.

Functions

Link copied to clipboard
fun a(content: String, tr: Throwable? = null)
fun a(tag: String, content: String, tr: Throwable? = null)

Send a LogLevel.ASSERT log message.

Link copied to clipboard
fun d(content: String, tr: Throwable? = null)
fun d(tag: String, content: String, tr: Throwable? = null)

Send a LogLevel.DEBUG log message.

Link copied to clipboard
fun e(content: String, tr: Throwable? = null)
fun e(tag: String, content: String, tr: Throwable? = null)

Send a LogLevel.ERROR log message.

Link copied to clipboard
fun i(content: String, tr: Throwable? = null)
fun i(tag: String, content: String, tr: Throwable? = null)

Send a LogLevel.INFO log message.

Link copied to clipboard
fun json(level: LogLevel, target: Any)
fun json(tag: String, level: LogLevel, target: Any)

Print object target to json.

fun json(logLevel: LogLevel, jsonString: String)
fun json(tag: String, logLevel: LogLevel, jsonString: String)

Print jsonString as json string.

Link copied to clipboard
fun logPrint(logInfo: LogInfo)
fun logPrint(level: LogLevel, tag: String, content: String, tr: Throwable? = null)

Log print.

Link copied to clipboard
fun v(content: String, tr: Throwable? = null)
fun v(tag: String, content: String, tr: Throwable? = null)

Send a LogLevel.VERBOSE log message.

Link copied to clipboard
fun w(content: String, tr: Throwable? = null)

Send a LogLevel.WARN log message.

fun w(tag: String, content: String, tr: Throwable? = null)

Send a LogLevel.WARN message.