Table of Contents

Class LoggingMessageNotificationParams

Namespace
ModelContextProtocol.Protocol.Types
Assembly
ModelContextProtocol.dll

Sent from the server as the payload of "notifications/message" notifications whenever a log message is generated.

If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically. See the schema for details

public class LoggingMessageNotificationParams
Inheritance
LoggingMessageNotificationParams
Inherited Members

Properties

Data

The data to be logged, such as a string message or an object.

[JsonPropertyName("data")]
public JsonElement? Data { get; init; }

Property Value

JsonElement?

Level

The severity of this log message.

[JsonPropertyName("level")]
public LoggingLevel Level { get; init; }

Property Value

LoggingLevel

Logger

An optional name of the logger issuing this message.

[JsonPropertyName("logger")]
public string? Logger { get; init; }

Property Value

string