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

Package-level declarations

Types

Logger
Link copied to clipboard
interface Logger

A central utility class for processing log statements at various log levels.

LogHandler
Link copied to clipboard
interface LogHandler

LogHandler is responsible for handling and recording log messages.

LogLevel
Link copied to clipboard
enum LogLevel : Enum<LogLevel> , DataItemConvertible

The LogLevel enum class defines different log levels used for logging messages. Each log level is associated with an integer value that determines its priority.

Properties

isDebugLogging
Link copied to clipboard
val Logger.isDebugLogging: Boolean

Convenience method to check that the log level is set to debug or higher

isErrorLogging
Link copied to clipboard
val Logger.isErrorLogging: Boolean

Convenience method to check that the log level is set to error or higher

isInfoLogging
Link copied to clipboard
val Logger.isInfoLogging: Boolean

Convenience method to check that the log level is set to info or higher

isTraceLogging
Link copied to clipboard
val Logger.isTraceLogging: Boolean

Convenience method to check that the log level is set to trace or higher

isWarnLogging
Link copied to clipboard
val Logger.isWarnLogging: Boolean

Convenience method to check that the log level is set to warn or higher

Functions

logIfDebugEnabled
Link copied to clipboard
inline fun Logger.logIfDebugEnabled(category: String, message: () -> String)

Inlines a check for whether the Logger is currently logging at LogLevel.DEBUG, before evaluating the message, whilst avoiding an unnecessary anonymous class implementation.

logIfErrorEnabled
Link copied to clipboard
inline fun Logger.logIfErrorEnabled(category: String, message: () -> String)

Inlines a check for whether the Logger is currently logging at LogLevel.ERROR, before evaluating the message, whilst avoiding an unnecessary anonymous class implementation.

logIfInfoEnabled
Link copied to clipboard
inline fun Logger.logIfInfoEnabled(category: String, message: () -> String)

Inlines a check for whether the Logger is currently logging at LogLevel.INFO, before evaluating the message, whilst avoiding an unnecessary anonymous class implementation.

logIfTraceEnabled
Link copied to clipboard
inline fun Logger.logIfTraceEnabled(category: String, message: () -> String)

Inlines a check for whether the Logger is currently logging at LogLevel.TRACE, before evaluating the message, whilst avoiding an unnecessary anonymous class implementation.

logIfWarnEnabled
Link copied to clipboard
inline fun Logger.logIfWarnEnabled(category: String, message: () -> String)

Inlines a check for whether the Logger is currently logging at LogLevel.WARN, before evaluating the message, whilst avoiding an unnecessary anonymous class implementation.

Generated by Dokka
(c) Tealium 2026