LoggingFormat

sealed class LoggingFormat

An object that represents the format for the logs.

Inheritors

Types

Link copied to clipboard
data class Json(val value: List<JsonFormatRef>) : LoggingFormat
Link copied to clipboard
Link copied to clipboard
data class Text(val value: String) : LoggingFormat

Functions

Link copied to clipboard

Casts this LoggingFormat as a Json and retrieves its kotlin.collections.List value. Throws an exception if the LoggingFormat is not a Json.

Link copied to clipboard

Casts this LoggingFormat as a Json and retrieves its kotlin.collections.List value. Returns null if the LoggingFormat is not a Json.

Link copied to clipboard
fun asText(): String

Casts this LoggingFormat as a Text and retrieves its kotlin.String value. Throws an exception if the LoggingFormat is not a Text.

Link copied to clipboard

Casts this LoggingFormat as a Text and retrieves its kotlin.String value. Returns null if the LoggingFormat is not a Text.