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

trace

abstract fun trace(category: String, message: String)

Logs a LogLevel.TRACE level message with the given category.

Parameters

category

The category or identifier associated with the log message.

message

The message to be recorded


abstract fun trace(category: String, message: String, vararg args: Any?)

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

Parameters

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 trace(category: String, message: () -> String)

Logs a LogLevel.TRACE level message with the given 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.

For Kotlin call-sites, there is a preferable inline alternative to avoid the anonymous class

  • logIfTraceEnabled - which is not suitable for logging prior to the first LogLevel being set.

Parameters

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