SetLevelRequest

@Serializable
data class SetLevelRequest(val level: LoggingLevel, val _meta: JsonObject = EmptyJsonObject) : ClientRequest, WithMeta(source)

A request from the client to the server to enable or adjust logging.

Constructors

Link copied to clipboard
constructor(level: LoggingLevel, _meta: JsonObject = EmptyJsonObject)

Properties

Link copied to clipboard
open override val _meta: JsonObject

The protocol reserves this result property to allow clients and servers to attach additional metadata to their responses.

Link copied to clipboard

The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message.

Link copied to clipboard
open override val method: Method

Functions

Link copied to clipboard

Converts the request to a JSON-RPC request.