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
typealias MessageFormatter = (l: LogLevel, t: String, m: String, Throwable?) -> String
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
fun KSAndroidLog(defaultTag: String, minLoggingLevel: LogLevel = LogLevel.VERBOSE): KSLog
fun KSAndroidLog(defaultTag: String, filter: (l: LogLevel, t: String, m: String, Throwable?) -> Boolean): CallbackKSLog
fun KSAndroidLog(defaultTag: String, levels: Iterable<LogLevel>): KSLog
inline fun KSAndroidLog(    defaultTag: String,     firstLevel: LogLevel,     secondLevel: LogLevel,     vararg otherLevels: LogLevel): KSLog
Link copied to clipboard
fun KSJSLog(    defaultTag: String,     messageFormatter: MessageFormatter = defaultMessageFormatter,     minLoggingLevel: LogLevel = LogLevel.values().first()): KSLog
fun KSJSLog(    defaultTag: String,     messageFormatter: MessageFormatter = defaultMessageFormatter,     filter: (l: LogLevel, t: String?, m: String, Throwable?) -> Boolean): CallbackKSLog
fun KSJSLog(    defaultTag: String,     messageFormatter: MessageFormatter = defaultMessageFormatter,     levels: Iterable<LogLevel>): KSLog
fun KSJSLog(    defaultTag: String,     messageFormatter: MessageFormatter = defaultMessageFormatter,     firstLevel: LogLevel,     secondLevel: LogLevel,     vararg otherLevels: LogLevel): KSLog
Link copied to clipboard
fun KSJVMLog(    defaultTag: String,     logger: Logger,     messageFormatter: MessageFormatter = defaultMessageFormatter,     minLoggingLevel: LogLevel = LogLevel.values().first()): KSLog
fun KSJVMLog(    defaultTag: String,     logger: Logger,     messageFormatter: MessageFormatter = defaultMessageFormatter,     filter: (l: LogLevel, t: String?, m: String, Throwable?) -> Boolean): CallbackKSLog
fun KSJVMLog(    defaultTag: String,     logger: Logger,     messageFormatter: MessageFormatter = defaultMessageFormatter,     levels: Iterable<LogLevel>): KSLog
fun KSJVMLog(    defaultTag: String,     logger: Logger,     messageFormatter: MessageFormatter = defaultMessageFormatter,     firstLevel: LogLevel,     secondLevel: LogLevel,     vararg otherLevels: LogLevel): KSLog
Link copied to clipboard
fun KSLog(defaultTag: String, minLoggingLevel: LogLevel = LogLevel.values().first()): KSLog
fun KSLog(defaultTag: String, filter: (l: LogLevel, t: String, m: String, Throwable?) -> Boolean): KSLog
fun KSLog(defaultTag: String, levels: Iterable<LogLevel>): KSLog
fun KSLog(    defaultTag: String,     firstLevel: LogLevel,     secondLevel: LogLevel,     vararg otherLevels: LogLevel): 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 defaultMessageFormatter: MessageFormatter
Link copied to clipboard
val Any.logger: KSLog
Link copied to clipboard
val Any.logTag: String