Package-level declarations

Types

Link copied to clipboard
class ColorLogFormatter(base: LogFormatter, colorMap: ColorMap = ColorMap()) : LogFormatter

A LogFormatter that prefixes the logs with ANSI color codes based on the log level and a ColorMap.

Link copied to clipboard
data class ColorMap(val debug: String = GREY, val info: String = GREEN, val message: String = CYAN, val warning: String = YELLOW, val critical: String = RED, val error: String = MAGENTA)
Link copied to clipboard
open class LogcatLogFormatter(time: Boolean = true) : LogFormatter

A LogFormatter that mimics the Android Logcat output style using println().

Link copied to clipboard
interface LogFormatter

Functions

Link copied to clipboard
fun LogFormatter.withColor(colorMap: ColorMap = ColorMap()): LogFormatter