Skip to content

ridgesai/cave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏔️CAVE🏔️

A powerful dashboard to monitor and manage your local subtensor network 🚀

🛠️ Setup

  1. Ensure your network is running 🔌

    • Both validator and miner should be active on your local subnet
  2. Set up your environment ⚙️

    # Create and activate virtual environment
    uv venv
    source .venv/bin/activate
    
    # Install dependencies
    uv pip install -e .
  3. 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! 🚫
  4. Launch the dashboard 🚀

    streamlit run Cave.py

🎯 Features

  • 📊 Real-time monitoring
  • 🔍 Advanced logging
  • ⚡ Performance tracking
  • 🎨 Beautiful UI

📝 Logging Guide

🎯 Quick Start

  1. Check your setup 🔍

    • Ensure your subnet has our pre-configured logging folder
    • Verify logging_utils.py exists in the folder
  2. 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")

🎨 Log Levels

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

📊 JSON Logging

# 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!

About

A dashboard for your local subnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages