We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/smatiolids/astra-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_logging.py•1 KiB
#!/usr/bin/env python3
"""
Test script to verify logging configuration.
This script tests that logs go only to the file and stdout remains available.
"""
import sys
from logger import get_logger
def test_logging():
"""Test the logging configuration."""
print("=== Testing Logging Configuration ===")
print("This message should appear on stdout (not in log file)")
# Get logger instance
logger = get_logger("test_logger")
# Test different log levels
logger.debug("This is a DEBUG message - should go to logs/logs.log only")
logger.info("This is an INFO message - should go to logs/logs.log only")
logger.warning("This is a WARNING message - should go to logs/logs.log only")
logger.error("This is an ERROR message - should go to logs/logs.log only")
print("=== Test completed ===")
print("Check logs/logs.log file to verify the log messages are there")
print("This stdout message should NOT be in the log file")
if __name__ == "__main__":
test_logging()