public interface McpLoggableSession extends McpSession
McpSession
which is capable of processing logging notifications and keeping
track of a min logging level.限定符和类型 | 方法和说明 |
---|---|
boolean |
isNotificationForLevelAllowed(McpSchema.LoggingLevel loggingLevel)
Allows checking whether a particular logging level is allowed.
|
void |
setMinLoggingLevel(McpSchema.LoggingLevel minLoggingLevel)
Set the minimum logging level for the client.
|
close, closeGracefully, sendNotification, sendNotification, sendRequest
void setMinLoggingLevel(McpSchema.LoggingLevel minLoggingLevel)
minLoggingLevel
- The minimum logging levelboolean isNotificationForLevelAllowed(McpSchema.LoggingLevel loggingLevel)
loggingLevel
- the level to check