loggingPlugin

fun <S : MVIState, I : MVIIntent, A : MVIAction> loggingPlugin(tag: String? = null, level: StoreLogLevel? = null, name: String? = null, logger: StoreLogger? = null): LazyPlugin<S, I, A>

Create a new StorePlugin that prints messages using log.

  • tag is used as a name for the plugin, unless overridden by name. Tag can be null, in which case, store's name will be used. Provide an empty string to remove the tag.

  • level level override to print all messages. If null, a default level will be used (null by default)

  • logger Unless a non-null value is provided, a store logger will be used.