============================================================ clickmd Logger Examples ============================================================

# Basic Logger Usage

    → Starting process...

    ✅ Build completed successfully

    ⚠️ Cache miss - fetching from source

    🛑 Connection refused

----------------------------------------

# Action Logging

    🚀 Evolution mode activated

    🤖 Using OpenRouter provider

    🔨 Generating code to ./output

    🧪 Running test suite

    💾 Saving contract.ai.json

    ✅ All tasks completed

----------------------------------------

# Progress & Steps

    📊 Installing: 25% (25/100)

    📊 Building: 50% (50/100)

    📊 Testing: 75% (75/100)

    📊 Complete: 100% (100/100)

    [1/5] Initialize project

    [2/5] Generate contract

    [3/5] Generate code

    [4/5] Run tests

    [5/5] Deploy

----------------------------------------

# Exception Handling

    🛑 ZeroDivisionError: division by zero

    🛑 ValueError: Invalid configuration: missing 'port' field

      Traceback (most recent call last):

        File "/home/tom/github/wronai/contract/clickmd/examples/logger_usage.py", line 81, in exception_handling

          raise ValueError("Invalid configuration: missing 'port' field")

      ValueError: Invalid configuration: missing 'port' field

----------------------------------------

# Grouped Output (Sections)

    → This is separate

    → Each line is its own block

## With Section

    🚀 Starting build...
    → Compiling TypeScript
    → Bundling assets
    → Optimizing images
    ✅ Build complete!

----------------------------------------

# LLM Logging

    🤖 LLM selected: openrouter

    → Model: qwen/qwen-2.5-coder-32b-instruct

    📋 Attempt 1/3 (contract generation)

    📋 Attempt 2/3 (contract generation)

    → Provider: openrouter

    → Model: qwen-2.5-coder

    → Temperature: 0.7

----------------------------------------

# Mixed Markdown & Logs

## Generation Status

    🚀 Starting generation...

    → Loading contract.ai.json

    ✅ Contract loaded

## Generated Files

File | Size | Status
--- | --- | ---
server.ts | 2.4 KB | ✅
package.json | 0.8 KB | ✅
tsconfig.json | 0.3 KB | ✅

    ✅ Generation complete!

----------------------------------------

# Real-World Example: Evolution Pipeline

# 🧬 Evolution Mode

    → Prompt: Create a todo app
    → Output: ./output
    → Engine: Python Native

## Contract Generation

    🤖 LLM selected: openrouter

    → Model: nvidia/nemotron-3-nano-30b-a3b:free

    📋 Attempt 1/3 (contract generation)

    ✅ Contract generated successfully in 1 attempt(s)

## Code Generation

    🔨 Generating code to ./output
    → Framework: express (typescript)
    → Entities: 1
    🤖 Using LLM for code generation...
    ✅ LLM generated 3 files

## Testing

    ✅ Health check passed
    ✅ CRUD tests passed
    ⚠️ 1 test skipped (optional feature)

## ✅ Evolution Complete

    ✅ All tasks finished successfully!