LogFactory

Log factory. You can only get a LogFactory by getLogFactory. By default, you should only create one factory in your app.

Since

0.5.2

Constructors

Link copied to clipboard
internal constructor()

Properties

Link copied to clipboard
Link copied to clipboard
private val plugins: MutableMap<String, (LogCat) -> Unit>

Functions

Link copied to clipboard
fun getLogCat(clazz: Class<*>): LogCat

Get log with clazz.

fun getLogCat(tag: String = ""): LogCat

Get log with tag.

Link copied to clipboard
private fun install(logcat: LogCat)

Install the plugin to logcat.

fun <TConfig : Any, TPlugin : Any> install(plugin: LogPlugin<TConfig, TPlugin>, configure: TConfig.() -> Unit = {})

Install plugin for your log.

Link copied to clipboard
operator fun invoke(clazz: Class<*>): LogCat

Use the class name of clazz as the tag of the log.

operator fun invoke(tag: String = ""): LogCat