log

abstract fun log(level: StoreLogLevel, tag: String?, message: () -> String)

Print a message to the log.

Parameters

level

Log priority. Only used on some platforms where levels are supported, otherwise prints an emoji in the message body

tag

Tag. Only used on Android right now - the only platform supporting tags. Other platforms simply prepend the tag to the message.

message

lazy message. Should only be evaluated if actual printing happens