Function: mcp-sync-set-log-level
mcp-sync-set-log-level is a natively compiled function defined in
mcp.el.
Signature
(mcp-sync-set-log-level CONNECTION LOG-LEVEL)
Documentation
Synchronously set the log level for the MCP server.
CONNECTION is the MCP connection object.
LOG-LEVEL is the desired log level, which must be one of:
- debug: Detailed debugging information (function entry/exit points)
- info: General informational messages (operation progress updates)
- notice: Normal but significant events (configuration changes)
- warning: Warning conditions (deprecated feature usage)
- error: Error conditions (operation failures)
- critical: Critical conditions (system component failures)
- alert: Action must be taken immediately (data corruption detected)
- emergency: System is unusable (complete system failure)
On success, displays a message confirming the log level change. On error, displays an error message with the server's response code and message.
Source Code
;; Defined in /nix/store/5m747x13pb1ddrvbq9raj91c4q1h1kl0-emacs-packages-deps/share/emacs/site-lisp/elpa/mcp-20260615.940/mcp.el
(defun mcp-sync-set-log-level (connection log-level)
"Synchronously set the log level for the MCP server.
CONNECTION is the MCP connection object.
LOG-LEVEL is the desired log level, which must be one of:
- `debug': Detailed debugging information (function entry/exit points)
- `info': General informational messages (operation progress updates)
- `notice': Normal but significant events (configuration changes)
- `warning': Warning conditions (deprecated feature usage)
- `error': Error conditions (operation failures)
- `critical': Critical conditions (system component failures)
- `alert': Action must be taken immediately (data corruption detected)
- `emergency': System is unusable (complete system failure)
On success, displays a message confirming the log level change.
On error, displays an error message with the server's response code and message."
(mcp--set-log-level connection log-level 'sync))