EventProcessingLogger

internal class EventProcessingLogger(logger: KaliumLogger, event: Event, startOfProcessing: Instant)

The EventProcessingLogger class is responsible for logging event processing details.

Constructors

Link copied to clipboard
constructor(logger: KaliumLogger, event: Event, startOfProcessing: Instant)

Functions

Link copied to clipboard
fun logComplete(status: EventLoggingStatus, extraInfo: Array<out Pair<String, Any>> = arrayOf())

Logs event processing. Will use the difference between the current system time and startOfProcessing to log performance data. Underlying implementation detail is using the common KaliumLogger.logStructuredJson to log structured JSON.

Link copied to clipboard
fun logFailure(failure: CoreFailure? = null, vararg extraInfo: Pair<String, Any>)

Logs the event processing as failed. Will use the difference between the current system time and startOfProcessing to log performance data.

Link copied to clipboard
fun logSuccess(vararg extraInfo: Pair<String, Any>)

Logs the event processing as successful. Will use the difference between the current system time and startOfProcessing to log performance data.