Package-level declarations

Types

Link copied to clipboard
data class PureeBufferedLog(val id: Long = 0, val createdAt: Instant, val log: JsonObject)

Data class representing a log entry that has been buffered for batch processing.

Link copied to clipboard
abstract class PureeBufferedOutput(uniqueId: String) : PureeOutput

Abstract base class for outputs that buffer logs before emitting them in batches.

Link copied to clipboard
interface PureeOutput

Interface for log output destinations in the Puree-KMP logging system.

Functions

Link copied to clipboard
fun <Error class: unknown class>.setExponentialBackoffBase(exponentialBackoffBaseMillis: UInt64)

Sets the base duration for exponential backoff in retry attempts. The exponential backoff duration is calculated as: base * (2^(retryCount-1))

Link copied to clipboard
fun <Error class: unknown class>.setFlushInterval(flushIntervalMillis: Long)

Sets the flush interval for this buffered output.

Link copied to clipboard
fun <Error class: unknown class>.setLogsPerFlush(logsPerFlush: UInt)

Sets the maximum number of logs to include in each flush operation.

Link copied to clipboard
fun <Error class: unknown class>.setMaxRetryCount(maxRetryCount: UInt)

Sets the maximum number of retry attempts for failed flush operations.

Link copied to clipboard
fun <Error class: unknown class>.setPurgeableAge(purgeableAgeMillis: UInt64)

Sets the age threshold after which logs will be automatically purged. Logs older than this threshold will be deleted during flush operations.