Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.logger/Logger/log

log

abstract fun log(level: LogLevel, category: String, message: String)

Logs a message at the given level and category.

Parameters

level

The LogLevel that this message should be logged at

category

The category or identifier associated with the log message.

message

The message to be recorded


abstract fun log(level: LogLevel, category: String, message: String, vararg args: Any?)

Logs a message at the given level and category by formatting the message using String.format, inserting the args into the placeholders in the order given in the message

Parameters

level

The LogLevel that this message should be logged at

category

The category or identifier associated with the log message.

message

The message to be recorded, with placeholders to be replaced by the values given in args

args

Variable number of args to insert into the template.


abstract fun log(level: LogLevel, category: String, message: () -> String)

Logs a message at the given level and category by evaluating the log message from the given message

This should be used in cases where a log message may require sizeable computation to produce the message, e.g. writing out JSON objects.

Parameters

level

The LogLevel that this message should be logged at

category

The category or identifier associated with the log message.

message

A block of code used to produce the message to be recorded

Generated by Dokka
(c) Tealium 2026