FileLogger

class FileLogger(applicationContext: Context, directory: String) : Logger

Constructors

Link copied to clipboard
constructor(applicationContext: Context, directory: String)

Properties

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 isLoggable(logLevel: Int): Boolean
Link copied to clipboard
open override fun println(logLevel: Int, tag: String, msg: String)
open override fun println(logLevel: Int, tag: String, tr: Throwable, msg: String)
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
open fun setLogLevel(logLevel: Int)
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)