Package-level declarations

Types

Link copied to clipboard
class CommonLogger(var isEnabled: Boolean) : Logger
Link copied to clipboard
class CompositeLogger(loggers: List<Logger>) : Logger
Link copied to clipboard
class FileLogger(applicationContext: Context, directory: String) : Logger
Link copied to clipboard
object Log : Logger
Link copied to clipboard
class LogcatLogger(var isEnabled: Boolean) : Logger
Link copied to clipboard
abstract class Logger
Link copied to clipboard
interface LoggerProvider
Link copied to clipboard

Be aware, this observer is stateful.

Link copied to clipboard
object LogsExtra
Link copied to clipboard
fun interface LogsObserver
Link copied to clipboard

NoOp logger.

Link copied to clipboard

Functions

Link copied to clipboard
inline fun Logger.d(tag: String, block: () -> String)
Link copied to clipboard
inline fun Logger.e(tag: String, block: () -> String)
inline fun Logger.e(tag: String, tr: Throwable, block: () -> String)
Link copied to clipboard
inline fun Logger.i(tag: String, block: () -> String)
inline fun Logger.i(tag: String, tr: Throwable, block: () -> String)
Link copied to clipboard
fun isDev(): Boolean
Link copied to clipboard
inline fun Logger.println(level: Int, tag: String, block: () -> String)
inline fun Logger.println(level: Int, tag: String, tr: Throwable, block: () -> String)

Building a message string can be expensive. This extension method helps to avoid it if logging is disabled.

Link copied to clipboard
inline fun Logger.v(tag: String, block: () -> String)
Link copied to clipboard
inline fun Logger.w(tag: String, block: () -> String)
inline fun Logger.w(tag: String, tr: Throwable, block: () -> String)