Class McpLogMessageEventArgs
Provides data for the LogMessageReceived event.
public sealed class McpLogMessageEventArgs : EventArgs
- Inheritance
-
McpLogMessageEventArgs
- Inherited Members
Constructors
- McpLogMessageEventArgs(McpLogLevel, string, string)
Initializes a new instance of McpLogMessageEventArgs.
Properties
- Data
Gets the raw JSON data associated with the log message.
- Level
Gets the severity level of the log message.
- Logger
Gets the name of the logger/component that generated this message.
- Timestamp
Gets the timestamp when this log message was received.
Methods
- ToString()
Returns a formatted string representation of this log message.
- TryGetDataAsJson(out JsonDocument)
Attempts to parse the data as a JSON document.