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

shouldLog

abstract fun shouldLog(level: LogLevel): Boolean

Returns whether or not the given level should be logged by the currently configured LogLevel.

Note. This method will return true when there is not a LogLevel set yet. Therefore, calling any of the logging methods (trace, debug etc) will queue the log message until a LogLevel has been set, deferring the decision on whether to log, or not, until then.

Parameters

level

The LogLevel to compare against the currently configured LogLevel

Generated by Dokka
(c) Tealium 2026