invoke

operator fun invoke(tag: String = ""): LogCat(source)
val logFactory: LogFactory = getLogFactory {
....
}

val logcat: LogCat = logFactory("OpenApi")

Since

1.3.5


operator fun invoke(clazz: Class<*>): LogCat(source)

Deprecated

The clazz parameter is passed in just to get the class name as the default log tag, but this may cause misunderstanding for some users, so this API is marked as deprecated at the WARNING level.

Replace with

invoke(clazz.simpleName)

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

val logFactory: LogFactory = getLogFactory {
....
}

val logcat: LogCat = logFactory(OpenApi::class.java)

Since

1.3.5