Package dev.inmo.kslog.common

Types

Link copied to clipboard
class CallbackKSLog(performLogCallback: (level: LogLevel, tag: String?, message: String, throwable: Throwable?) -> Unit) : KSLog
Link copied to clipboard
interface KSLog
Link copied to clipboard
enum LogLevel : Enum<LogLevel>
Link copied to clipboard
value class TagLogger(val tag: String) : KSLog

Functions

Link copied to clipboard
inline fun KSLog.assert(message: String, e: Throwable? = null)
inline fun KSLog.assert(    tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.assert(    tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)
Link copied to clipboard
inline fun KSLog.d(message: String, e: Throwable? = null)
inline fun KSLog.d(    tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.d(    tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)
Link copied to clipboard
inline fun KSLog.debug(message: String, e: Throwable? = null)
inline fun KSLog.debug(    tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.debug(    tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)
Link copied to clipboard
inline fun KSLog.e(message: String, e: Throwable? = null)
inline fun KSLog.e(    tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.e(    tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)
Link copied to clipboard
inline fun KSLog.error(message: String, e: Throwable? = null)
inline fun KSLog.error(    tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.error(    tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)
Link copied to clipboard
inline fun KSLog.i(message: String, e: Throwable? = null)
inline fun KSLog.i(    tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.i(    tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)
Link copied to clipboard
inline fun KSLog.info(message: String, e: Throwable? = null)
inline fun KSLog.info(    tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.info(    tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)
Link copied to clipboard
operator fun KSLog.invoke(performLogCallback: (level: LogLevel, tag: String?, message: String, throwable: Throwable?) -> Unit): CallbackKSLog
Link copied to clipboard
actual fun KSLog(defaultTag: String, filter: (l: LogLevel, t: String, m: String, Throwable?) -> Boolean): KSLog
fun KSLog(defaultTag: String, minLoggingLevel: LogLevel = LogLevel.VERBOSE): KSLog
expect fun KSLog(defaultTag: String, filter: (l: LogLevel, t: String, m: String, Throwable?) -> Boolean): KSLog
fun KSLog(defaultTag: String, levels: Iterable<LogLevel>): KSLog
inline fun KSLog(    defaultTag: String,     firstLevel: LogLevel,     secondLevel: LogLevel,     vararg otherLevels: LogLevel): KSLog
fun KSLog(messageFormatter: (l: LogLevel, t: String?, m: String, Throwable?) -> String, filter: (l: LogLevel, t: String?, m: String, Throwable?) -> Boolean): CallbackKSLog
actual fun KSLog(defaultTag: String, filter: (l: LogLevel, t: String, m: String, Throwable?) -> Boolean): KSLog
actual fun KSLog(defaultTag: String, filter: (l: LogLevel, t: String, m: String, Throwable?) -> Boolean): KSLog
fun KSLog(    logger: Logger,     filter: (l: LogLevel, t: String?, m: String, Throwable?) -> Boolean,     messageFormatter: (l: LogLevel, t: String?, m: String, Throwable?) -> String): CallbackKSLog
fun KSLog(    defaultTag: String,     logger: Logger,     filter: (l: LogLevel, t: String, m: String, Throwable?) -> Boolean = { _, _, _, _ -> true }): KSLog
Link copied to clipboard
inline fun KSLog.l(    level: LogLevel,     message: String,     e: Throwable? = null)
inline fun KSLog.l(    level: LogLevel,     tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.l(    level: LogLevel,     tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)
Link copied to clipboard
inline fun KSLog.log(    level: LogLevel,     message: String,     e: Throwable? = null)
inline fun KSLog.log(    level: LogLevel,     tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.log(    level: LogLevel,     tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)
Link copied to clipboard
inline fun KSLog.v(message: String, e: Throwable? = null)
inline fun KSLog.v(    tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.v(    tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)
Link copied to clipboard
inline fun KSLog.verbose(message: String, e: Throwable? = null)
inline fun KSLog.verbose(    tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.verbose(    tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)
Link copied to clipboard
inline fun KSLog.w(message: String, e: Throwable? = null)
inline fun KSLog.w(    tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.w(    tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)
Link copied to clipboard
inline fun KSLog.warning(message: String, e: Throwable? = null)
inline fun KSLog.warning(    tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.warning(    tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)
Link copied to clipboard
inline fun KSLog.wtf(message: String, e: Throwable? = null)
inline fun KSLog.wtf(    tag: String,     message: String,     e: Throwable? = null)
inline fun KSLog.wtf(    tag: String? = null,     e: Throwable? = null,     messageBuilder: () -> String)

Properties

Link copied to clipboard
val Any.logger: KSLog
Link copied to clipboard
val Any.logTag: String