Skip to main content
Glama

mcp-netwrixaccessanalayzer

Official
by netwrix
logging_config.py759 B
# mcp_naa/logging_config.py import logging import sys import os def setup_logging(): """Configures logging for the application.""" log_level_name = os.getenv("LOG_LEVEL", "INFO").upper() log_level = getattr(logging, log_level_name, logging.INFO) logging.basicConfig( level=log_level, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', stream=sys.stderr ) # Suppress overly verbose logs from libraries if necessary # logging.getLogger("pyodbc").setLevel(logging.WARNING) logger = logging.getLogger(__name__) logger.info(f"Logging configured with level: {log_level_name}") def get_logger(name: str) -> logging.Logger: """Gets a logger instance.""" return logging.getLogger(name)

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/netwrix/mcp-server-naa'

If you have feedback or need assistance with the MCP directory API, please join our Discord server