epoxy-processor / com.airbnb.epoxy.processor / Logger

Logger

class Logger

Constructors

<init>

Logger(messager: Messager, logTimings: Boolean)

Properties

logTimings

val logTimings: Boolean

messager

val messager: Messager

Functions

logError

fun logError(msg: String, vararg args: Any): Unit

Errors logged with this should describe exactly what is wrong. These won't show the stacktrace in the error output to reduce confusion.

fun logError(e: Throwable, message: String? = null): Unit

Errors are logged and saved until after classes are generating. Otherwise if we throw immediately the models are not generated which leads to lots of other compiler errors which mask the actual issues.

logErrors

fun logErrors(exceptions: List<Exception>): Unit

measure

suspend fun <T> measure(name: String, numItems: Int? = null, isParallel: Boolean? = null, block: suspend () -> T): T

note

fun note(message: String): Unit

printTimings

fun printTimings(processorName: String): Unit

warn

fun warn(msg: String): Unit

writeExceptions

fun writeExceptions(): Unit

Extension Functions

mutex

fun Any.mutex(): Mutex