Logger

interface Logger<M, E, F>

Interface for logging init and update calls.

Inheritors

Functions

Link copied to clipboard
abstract fun afterInit(model: M, result: First<M, F>)

Called right after the Init.init function is called.

Link copied to clipboard
abstract fun afterUpdate(model: M, event: E, result: Next<M, F>)

Called right after the Update.update function is called.

Link copied to clipboard
abstract fun beforeInit(model: M)

Called right before the Init.init function is called.

Link copied to clipboard
abstract fun beforeUpdate(model: M, event: E)

Called right before the Update.update function is called.

Link copied to clipboard
abstract fun exceptionDuringInit(model: M, exception: Throwable)

Called if the Init.init invocation throws an exception. This is a programmer error; Mobius is in an undefined state if it happens.

Link copied to clipboard
abstract fun exceptionDuringUpdate(model: M, event: E, exception: Throwable)

Called if the Update.update invocation throws an exception. This is a programmer error; Mobius is in an undefined state if it happens.