SyncManagerLogger

internal class SyncManagerLogger(logger: KaliumLogger, syncId: String, syncType: SyncType, syncStartedMoment: Instant)

Logs the sync process by providing structured logs. It logs the sync process start and completion with the syncId as a unique identifier.

Constructors

Link copied to clipboard
constructor(logger: KaliumLogger, syncId: String, syncType: SyncType, syncStartedMoment: Instant)

Functions

Link copied to clipboard
fun logSyncCompleted(duration: Duration = Clock.System.now() - syncStartedMoment)

Logs the sync process completion. Optionally, it can pass the duration of the sync process, useful for incremental sync that can happen between collecting states.

Link copied to clipboard

Logs the sync process start.