A powerful dashboard to monitor and manage your local subtensor network 🚀
-
Ensure your network is running 🔌
- Both validator and miner should be active on your local subnet
-
Set up your environment ⚙️
# Create and activate virtual environment uv venv source .venv/bin/activate # Install dependencies uv pip install -e .
-
Configure environment variable 🔑
# Copy example env file cp .env.example .env # Edit .env and add your local subnet repo path (absolute) # Remember: NO trailing slash! 🚫
-
Launch the dashboard 🚀
streamlit run Cave.py
- 📊 Real-time monitoring
- 🔍 Advanced logging
- ⚡ Performance tracking
- 🎨 Beautiful UI
-
Check your setup 🔍
- Ensure your subnet has our pre-configured
loggingfolder - Verify
logging_utils.pyexists in the folder
- Ensure your subnet has our pre-configured
-
Start logging ⚡
from logging.logging_utils import get_logger # Initialize logger with your module name logger = get_logger(__name__) # Log away! 🚀 logger.debug("Detailed information for debugging") logger.info("General information about program execution") logger.warning("Warning messages for potentially problematic situations") logger.error("Error messages for serious problems") logger.critical("Critical messages for fatal errors")
| Level | Color | When to Use |
|---|---|---|
| DEBUG | Cyan | Detailed information for debugging |
| INFO | Green | General information about program execution |
| WARNING | Yellow | Potentially problematic situations |
| ERROR | Red | Serious problems that need attention |
| CRITICAL | Red | Fatal errors that may lead to program termination |
# Good: Clean JSON logging
logger.info(json.dumps({"status": "success", "data": {...}}))
# Bad: Mixed content
logger.info(f"Status: {json.dumps(data)}") # Don't do this!