Package-level declarations

Types

Link copied to clipboard
fun interface StoreLogger

Store logger can be invoked by any code in the store. log prints a message to the logger instance configured when building the store.

Link copied to clipboard

Log level of this store. Override when installing the plugin or leave as a default for sensible log levels. Log level may be represented using a system log level, such as on JS, Wasm, Android and iOS. On other platforms, log level will be represented as an emoji (StoreLogLevel.asSymbol).

Properties

Link copied to clipboard

Convert StoreLogLevel to Android Log priority.

Link copied to clipboard

Returns an emoji resembling this log level.

Link copied to clipboard

A logger that prints to console (println)

Link copied to clipboard

A StoreLogger that does nothing.

Link copied to clipboard

A StoreLogger instance for each supported platform

Logger that prints to console.

A StoreLogger implementation that prints to System.out

A platform StoreLogger implementation that prints to console (alias for ConsoleStoreLogger)

A StoreLogger instance for each supported platform

Functions

Link copied to clipboard
fun StoreLogger.debug(tag: String? = null, message: () -> String)

Shorthand for log with StoreLogLevel.Debug as the log level.

Link copied to clipboard
fun StoreLogger.error(tag: String? = null, message: () -> String)

Shorthand for log with StoreLogLevel.Error as the log level.

Link copied to clipboard
fun StoreLogger.info(tag: String? = null, message: () -> String)

Shorthand for log with StoreLogLevel.Info as the log level.

Link copied to clipboard
operator fun StoreLogger.invoke(e: Exception, level: StoreLogLevel = StoreLogLevel.Error, tag: String? = null)

Alias for StoreLogger.log that can log exceptions

operator fun StoreLogger.invoke(level: StoreLogLevel, tag: String? = null, message: () -> String)

Alias for StoreLogger.log with optional parameters

Link copied to clipboard
fun PipelineContext<*, *, *>.log(e: Exception, level: StoreLogLevel = StoreLogLevel.Error, tag: String? = config.name)
fun PipelineContext<*, *, *>.log(level: StoreLogLevel = StoreLogLevel.Debug, tag: String? = config.name, message: () -> String)

Write a message to StoreLogger. Tag is the Store.name by default.

Link copied to clipboard
fun StoreLogger.trace(tag: String? = null, message: () -> String)

Shorthand for log with StoreLogLevel.Trace as the log level.

Link copied to clipboard
fun StoreLogger.warn(tag: String? = null, message: () -> String)

Shorthand for log with StoreLogLevel.Warn as the log level.