logStructuredJson

internal fun <Error class: unknown class>.logStructuredJson(level: <Error class: unknown class>, leadingMessage: String, jsonStringKeyValues: Map<String, Any?>)

Log a structured JSON message, in the following format:

Example:

leadingMessage: {map of key-value pairs represented as JSON}

Parameters

level

the severity of the log message

leadingMessage

the leading message useful for later grok parsing

jsonStringKeyValues

the map of key-value pairs to be logged in a valid JSON format