Package klog

Types

Link copied to clipboard
open class DefaultLogFactory(    level: Level = Level.WARN,     formatter: KMessageFormatter = KMessageFormatters.simple,     writer: KLogWriter = KLogWriters.noop) : KLogFactory
Link copied to clipboard
abstract class KLog(val tag: String)
Link copied to clipboard
abstract class KLogFactory
Link copied to clipboard
class KLogImpl(val tag: String, val conf: KLog.Conf) : KLog
Link copied to clipboard
typealias KLogWriter = (String, Level, String, Throwable?) -> Unit
Link copied to clipboard
object KLogWriters
Link copied to clipboard
typealias KMessageFormatter = (String, Level, String, Throwable?, StatementContext) -> String
Link copied to clipboard
object KMessageFormatters
Link copied to clipboard
typealias KTagFormatter = (String) -> String
Link copied to clipboard
enum Level : Enum<Level>
Link copied to clipboard
typealias LogMessageFunction = () -> String
Link copied to clipboard
object PosixKLogRegistry : DefaultLogFactory
Link copied to clipboard
data class StatementContext(    val threadName: String,     val threadID: String = "",     val line: StatementContext.LineContext? = null)

Functions

Link copied to clipboard
actual fun createKLogRegistry(): KLogFactory
expect fun createKLogRegistry(): KLogFactory
actual fun createKLogRegistry(): KLogFactory
actual fun createKLogRegistry(): KLogFactory
actual fun createKLogRegistry(): KLogFactory
Link copied to clipboard
expect fun getTimeMillis(): Long
actual fun getTimeMillis(): Long
actual fun getTimeMillis(): Long
actual fun getTimeMillis(): Long
Link copied to clipboard
inline fun <T : Any> T.klog(): KLog
inline fun klog(clazz: KClass<*>): KLog
inline fun <T : Any> T.klog(level: Level? = null): KLog
inline fun klog(tag: String, config: KLog.Conf.() -> Unit = {}): KLog
inline fun <T : Any> T.klog(tag: String = KLog.ROOT_LOG_TAG, config: KLog.Conf.() -> Unit): KLog
Link copied to clipboard
expect fun KClass<*>.klogName(): String
actual fun KClass<*>.klogName(): String
actual fun KClass<*>.klogName(): String
actual fun KClass<*>.klogName(): String
Link copied to clipboard
expect fun platformStatementContext(): StatementContext
actual fun platformStatementContext(): StatementContext
actual inline fun platformStatementContext(): StatementContext
actual inline fun platformStatementContext(): StatementContext

Properties

Link copied to clipboard
val KLogWriters.androidLog: KLogWriter
Link copied to clipboard
val Level.color: Int
Link copied to clipboard
val KMessageFormatter.colored: KMessageFormatter
Link copied to clipboard
val kLogRegistry: KLogFactory
Link copied to clipboard
val stackDepth: Int