LogCat

class LogCat(val tag: String)(source)

LogCat.

val logFactory: LogFactory = getLogFactory {
install(LogSwitch) {
open = true
}
install(LogPrinter)
}

val logcat = logFactory("global")

Since

1.3.4

Parameters

tag

The default tag of LogCat.

Constructors

Link copied to clipboard
internal constructor(tag: String)

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

Log pipeline.

Link copied to clipboard
val tag: String

Functions

Link copied to clipboard
fun a(content: Any?)
fun a(lazyMsg: () -> Any)
fun a(tag: Tag, content: Any?)
fun a(tag: Tag, lazyMsg: () -> Any)
fun a(tag: Tag, throwable: Throwable)
fun a(content: Any?, throwable: Throwable)
fun a(throwable: Throwable, lazyMsg: () -> Any)
fun a(tag: Tag, content: Any?, throwable: Throwable)
fun a(tag: Tag, throwable: Throwable, lazyMsg: () -> Any)

Send a LogLevel.ASSERT log message.

Link copied to clipboard
private fun convertIfNull(content: Any?): Any
Link copied to clipboard
fun d(content: Any?)
fun d(lazyMsg: () -> Any)
fun d(throwable: Throwable)
fun d(tag: Tag, content: Any?)
fun d(tag: Tag, lazyMsg: () -> Any)
fun d(tag: Tag, throwable: Throwable)
fun d(content: Any?, throwable: Throwable)
fun d(throwable: Throwable, lazyMsg: () -> Any)
fun d(tag: Tag, content: Any?, throwable: Throwable)
fun d(tag: Tag, throwable: Throwable, lazyMsg: () -> Any)

Send a LogLevel.DEBUG log message.

Link copied to clipboard
fun e(content: Any?)
fun e(lazyMsg: () -> Any)
fun e(throwable: Throwable)
fun e(tag: Tag, content: Any?)
fun e(tag: Tag, lazyMsg: () -> Any)
fun e(tag: Tag, tr: Throwable)
fun e(content: Any?, throwable: Throwable)
fun e(throwable: Throwable?, lazyMsg: () -> Any)
fun e(tag: Tag, content: Any?, throwable: Throwable)
fun e(tag: Tag, throwable: Throwable?, lazyMsg: () -> Any)

Send a LogLevel.ERROR log message.

Link copied to clipboard
fun i(content: Any?)
fun i(lazyMsg: () -> Any)
fun i(throwable: Throwable)
fun i(tag: Tag, content: Any?)
fun i(tag: Tag, lazyMsg: () -> Any)
fun i(tag: Tag, throwable: Throwable)
fun i(content: Any?, throwable: Throwable)
fun i(throwable: Throwable?, lazyMsg: () -> Any)
fun i(tag: Tag, content: Any?, throwable: Throwable)
fun i(tag: Tag, throwable: Throwable, lazyMsg: () -> Any)

Send a LogLevel.INFO log message.

Link copied to clipboard
fun log(level: LogLevel, tag: String, content: Any, throwable: Throwable?, trace: StackTraceElement = Throwable().stackTrace[2])

By default users should not call this method, this method exists only to facilitate the development of LogCat based logging framework.

Link copied to clipboard
fun v(content: Any?)
fun v(lazyMsg: () -> Any)
fun v(throwable: Throwable)
fun v(tag: Tag, content: Any?)
fun v(tag: Tag, lazyMsg: () -> Any)
fun v(tag: Tag, throwable: Throwable)
fun v(content: Any?, throwable: Throwable)
fun v(throwable: Throwable, lazyMsg: () -> Any)
fun v(tag: Tag, content: Any?, throwable: Throwable)
fun v(tag: Tag, throwable: Throwable, lazyMsg: () -> Any)

Send a LogLevel.VERBOSE log message.

Link copied to clipboard
fun w(content: Any?)
fun w(lazyMsg: () -> Any)
fun w(throwable: Throwable)
fun w(tag: Tag, content: Any?)
fun w(tag: Tag, lazyMsg: () -> Any)
fun w(tag: Tag, throwable: Throwable)
fun w(content: Any?, throwable: Throwable)
fun w(throwable: Throwable, lazyMsg: () -> Any)
fun w(tag: Tag, content: Any?, throwable: Throwable)
fun w(tag: Tag, throwable: Throwable, lazyMsg: () -> Any)

Send a LogLevel.WARN log message.