TraceFeatureMessageLogWriter

expect constructor(targetLogger: KLogger, logLevel: FeatureMessageLogWriter.LogLevel = LogLevel.INFO, format: (FeatureMessage) -> String? = null)(source)

Parameters

targetLogger

The logger to write trace events to

logLevel

The log level to use for trace events (default: INFO)

format

Optional custom formatter for trace events

actual constructor(targetLogger: ERROR CLASS: Symbol not found for KLogger, logLevel: ERROR CLASS: Symbol not found for LogLevel, format: (ERROR CLASS: Symbol not found for FeatureMessage) -> String?)(source)

Initializes an instance of TraceFeatureMessageLogWriter.

Parameters

targetLogger

The KLogger instance to output trace logs.

logLevel

The log level used for trace events. Defaults to LogLevel.INFO.

format

A lambda function for custom formatting of FeatureMessage into a loggable string, or null to use a default format.

actual constructor(targetLogger: KLogger, logLevel: FeatureMessageLogWriter.LogLevel, format: (FeatureMessage) -> String?)(source)

Creates an instance with the specified logger, log level, and optional message formatter.

Parameters

targetLogger

The KLogger instance used for logging feature messages.

logLevel

The level at which messages will be logged. Defaults to LogLevel.INFO.

format

An optional lambda used to format FeatureMessage instances into strings for logging. If not provided, a default implementation will be used.