Package-level declarations

Sending rendered log events to sinks.

Types

Link copied to clipboard
@Serializable
data class ElkEndpoint(val url: String, val checkCertificate: String = "true")

Model of an ELK server endpoint

Link copied to clipboard
data class Endpoint(val host: String = "localhost", val port: Int = 12201)

Model of a Graylog server endpoint.

Link copied to clipboard
typealias EventSender = suspend (List<LogEvent>) -> Unit

Function type for sending a batch of log events somewhere.

Link copied to clipboard
typealias SendString = suspend (String) -> Unit

Functional type used for sending a string to a target somewhere.

Link copied to clipboard
@Serializable
data class SplunkEndpoint(val hecUrl: String, val hecToken: String, val index: String = "main", val sourceType: String = "klogging", val checkCertificate: String = "true")

Model of a Splunk server HEC endpoint.

Functions

Link copied to clipboard
suspend fun <E> receiveBatch(channel: ReceiveChannel<E>, maxTimeMillis: Long, maxSize: Int): List<E>

Receive a batch of items from a channel, up to time and batch size limits.

Link copied to clipboard

Convert a RenderString and SendString into an EventSender.

Properties

Link copied to clipboard

Send an event rendered as a string to the standard output stream.