@modelcontextprotocol/sdk
    Preparing search index...

    Interface LoggingMessageNotification

    JSONRPCNotification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically.

    interface LoggingMessageNotification {
        jsonrpc: "2.0";
        method: "notifications/message";
        params: { data: unknown; level: LoggingLevel; logger?: string };
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    jsonrpc: "2.0"
    method: "notifications/message"
    params: { data: unknown; level: LoggingLevel; logger?: string }

    Type Declaration

    • data: unknown

      The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.

    • level: LoggingLevel

      The severity of this log message.

    • Optionallogger?: string

      An optional name of the logger issuing this message.