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
class DefaultKSLog(    defaultTag: String,     val filter: MessageFilter = { _, _, _ -> true },     messageFormatter: MessageFormatter = defaultMessageFormatter,     logging: (level: LogLevel, tag: String, message: String, throwable: Throwable?) -> Unit = defaultLogging) : KSLog
Link copied to clipboard
interface KSLog
Link copied to clipboard
enum LogLevel : Enum<LogLevel>
Link copied to clipboard
typealias MessageFilter = (l: LogLevel, t: String?, Throwable?) -> Boolean
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,     noinline messageBuilder: () -> String)
Link copied to clipboard
inline suspend fun KSLog.assertS(    tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> 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,     noinline 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,     noinline messageBuilder: () -> String)
Link copied to clipboard
inline suspend fun KSLog.debugS(    tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> String)
Link copied to clipboard
inline suspend fun KSLog.dS(    tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> 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,     noinline 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,     noinline messageBuilder: () -> String)
Link copied to clipboard
inline suspend fun KSLog.errorS(    tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> String)
Link copied to clipboard
inline suspend fun KSLog.eS(    tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> 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,     noinline 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,     noinline messageBuilder: () -> String)
Link copied to clipboard
inline suspend fun KSLog.infoS(    tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> String)
Link copied to clipboard
operator fun KSLog.invoke(performLogCallback: (level: LogLevel, tag: String?, message: String, throwable: Throwable?) -> Unit): CallbackKSLog
Link copied to clipboard
inline suspend fun KSLog.iS(    tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> String)
Link copied to clipboard
fun KSLog(    defaultTag: String,     minLoggingLevel: LogLevel,     messageFormatter: MessageFormatter = defaultMessageFormatter): KSLog
fun KSLog(    defaultTag: String,     filter: MessageFilter = { _, _, _ -> true },     messageFormatter: MessageFormatter = defaultMessageFormatter): KSLog
fun KSLog(    defaultTag: String,     levels: Iterable<LogLevel>,     messageFormatter: MessageFormatter = defaultMessageFormatter): KSLog
fun KSLog(    defaultTag: String,     firstLevel: LogLevel,     secondLevel: LogLevel,     vararg otherLevels: LogLevel,     messageFormatter: MessageFormatter = defaultMessageFormatter): KSLog
fun KSLog(    defaultTag: String,     logger: Logger,     minLoggingLevel: LogLevel = LogLevel.values().first(),     messageFormatter: MessageFormatter = defaultMessageFormatter): KSLog
fun KSLog(    defaultTag: String,     logger: Logger,     filter: MessageFilter = { _, _, _ -> true },     messageFormatter: MessageFormatter = defaultMessageFormatter): CallbackKSLog
fun KSLog(    defaultTag: String,     logger: Logger,     levels: Iterable<LogLevel>,     messageFormatter: MessageFormatter = defaultMessageFormatter): KSLog
fun KSLog(    defaultTag: String,     logger: Logger,     firstLevel: LogLevel,     secondLevel: LogLevel,     vararg otherLevels: LogLevel,     messageFormatter: MessageFormatter = defaultMessageFormatter): 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,     noinline 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,     noinline messageBuilder: () -> String)
Link copied to clipboard
inline suspend fun KSLog.logS(    level: LogLevel,     tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> String)
Link copied to clipboard
inline suspend fun KSLog.lS(    level: LogLevel,     tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> 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,     noinline 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,     noinline messageBuilder: () -> String)
Link copied to clipboard
inline suspend fun KSLog.verboseS(    tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> String)
Link copied to clipboard
inline suspend fun KSLog.vS(    tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> 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,     noinline 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,     noinline messageBuilder: () -> String)
Link copied to clipboard
inline suspend fun KSLog.warningS(    tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> String)
Link copied to clipboard
inline suspend fun KSLog.wS(    tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> 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,     noinline messageBuilder: () -> String)
Link copied to clipboard
inline suspend fun KSLog.wtfS(    tag: String? = null,     e: Throwable? = null,     noinline messageBuilder: suspend () -> 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