invoke
val logFactory: LogFactory = getLogFactory {
....
}
val logcat: LogCat = logFactory("OpenApi")
Content copied to clipboard
Since
1.3.5
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)
Content copied to clipboard
Use the class name of clazz as the tag of the log.
val logFactory: LogFactory = getLogFactory {
....
}
val logcat: LogCat = logFactory(OpenApi::class.java)
Content copied to clipboard
Since
1.3.5