Skip to content

LogsConfiguration.Builder

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

class Builder

A Builder class for a LogsConfiguration.

Constructors

Builder

constructor()

Functions

build

fun build(): LogsConfiguration

Builds a LogsConfiguration based on the current state of this Builder.

setEventMapper

fun setEventMapper(eventMapper: EventMapper<LogEvent>): LogsConfiguration.Builder

Sets the EventMapper for the LogEvent. You can use this interface implementation to modify the LogEvent attributes before serialisation.

Parameters
eventMapper the EventMapper implementation.

useCustomEndpoint

fun useCustomEndpoint(endpoint: String): LogsConfiguration.Builder

Let the Logs feature target a custom server.

Clone this wiki locally