Package org.danbrough.klog

Types

Link copied to clipboard
open class DefaultLogRegistry(    level: Level = Level.WARN,     formatter: KMessageFormatter = KMessageFormatters.simple,     writer: KLogWriter = KLogWriters.noop) : KLogRegistry
Link copied to clipboard
class Hex
Link copied to clipboard
interface KLog
Link copied to clipboard
data class KLogImpl(    registry: KLogRegistry,     val name: String,     _level: Level,     _writer: KLogWriter,     _messageFormatter: KMessageFormatter,     _nameFormatter: KNameFormatter? = null) : KLog
Link copied to clipboard
abstract class KLogRegistry
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 KNameFormatter = (String) -> String
Link copied to clipboard
enum Level : Enum<Level>
Link copied to clipboard
typealias LogMessageFunction = () -> String
Link copied to clipboard
object PosixKLogRegistry : DefaultLogRegistry
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(): KLogRegistry
expect fun createKLogRegistry(): KLogRegistry
actual fun createKLogRegistry(): KLogRegistry
actual fun createKLogRegistry(): KLogRegistry
actual fun createKLogRegistry(): KLogRegistry
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(name: String): KLog
inline fun <T : Any> T.klog(config: KLog.() -> Unit): KLog
inline fun <T : Any> T.klog(    level: Level? = null,     noinline writer: KLogWriter? = null,     noinline messageFormatter: KMessageFormatter? = null,     noinline nameFormatter: KNameFormatter? = null): KLog
inline fun klog(    name: String,     level: Level? = null,     noinline writer: KLogWriter? = null,     noinline messageFormatter: KMessageFormatter? = null,     noinline nameFormatter: KNameFormatter? = null): KLog
inline fun klog(    clazz: KClass<*>,     level: Level? = null,     noinline writer: KLogWriter? = null,     noinline messageFormatter: KMessageFormatter? = null,     noinline nameFormatter: KNameFormatter? = null): 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: KLogRegistry
Link copied to clipboard
val stackDepth: Int