MCPcopy Create free account
hub / github.com/IBM/mcp-cli / _setup_command_logging

Function _setup_command_logging

src/mcp_cli/main.py:902–908  ·  view source on GitHub ↗

Set up logging and theme for individual commands.

(
    quiet: bool, verbose: bool, log_level: str, theme: str = "default"
)

Source from the content-addressed store, hash-verified

900
901# Function to configure logging for individual commands
902def _setup_command_logging(
903 quiet: bool, verbose: bool, log_level: str, theme: str = "default"
904):
905 """Set up logging and theme for individual commands."""
906 setup_logging(level=log_level, quiet=quiet, verbose=verbose)
907 if theme:
908 set_theme(theme)
909
910
911# Provider command - FIXED to handle arguments properly

Callers 14

provider_commandFunction · 0.85
providers_commandFunction · 0.85
tools_commandFunction · 0.85
servers_commandFunction · 0.85
resources_commandFunction · 0.85
prompts_commandFunction · 0.85
models_commandFunction · 0.85
theme_commandFunction · 0.85
token_commandFunction · 0.85
tokens_commandFunction · 0.85

Calls 1

setup_loggingFunction · 0.90