LogExtensions

Properties

Link copied to clipboard

Functions

Link copied to clipboard
inline fun <R> Result<R>.logdIfThrow(msg: String = "", action: (Throwable) -> Unit = {}): Result<R>

Use this with runCatching Use Logger.d to log if throw Throwable

Link copied to clipboard
inline fun <R> Result<R>.logdxIfThrow(msg: String = "", action: (Throwable) -> Unit = {}): Result<R>

Use this with runCatching Use Logger.dx to log if throw Throwable

Link copied to clipboard
inline fun <R> Result<R>.logeIfThrow(msg: String = "", action: (Throwable) -> Unit = {}): Result<R>

Use this with runCatching Use Logger.e to log if throw Throwable

Link copied to clipboard
inline fun <R> Result<R>.logexIfThrow(msg: String = "", action: (Throwable) -> Unit = {}): Result<R>

Use this with runCatching Use Logger.ex to log if throw Throwable

Link copied to clipboard
inline fun <R> Result<R>.logiIfThrow(msg: String = "", action: (Throwable) -> Unit = {}): Result<R>

Use this with runCatching Use Logger.i to log if throw Throwable

Link copied to clipboard
inline fun <R> Result<R>.logixIfThrow(msg: String = "", action: (Throwable) -> Unit = {}): Result<R>

Use this with runCatching Use Logger.ix to log if throw Throwable

Link copied to clipboard
inline fun <R> Result<R>.logwIfThrow(msg: String = "", action: (Throwable) -> Unit = {}): Result<R>

Use this with runCatching Use Logger.w to log if throw Throwable

Link copied to clipboard
inline fun <R> Result<R>.logwxIfThrow(msg: String = "", action: (Throwable) -> Unit = {}): Result<R>

Use this with runCatching Use Logger.wx to log if throw Throwable