Skip to content

src/dazzle_back/runtime/logging.py

Generated: 2026-03-30T04:38:47.574042+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

DNR Logging Infrastructure.

Provides unified logging for both backend and frontend, with: - LLM-friendly log format (structured, contextual, easily parseable) - Console output for human monitoring - File output to .dazzle/logs/ for LLM agents to monitor - Frontend error capture endpoint

Log Format...

Key Exports

  • Colors
  • JSONLFormatter
  • ConsoleFormatter
  • setup_logging
  • get_logger
  • log_with_context
  • get_backend_logger
  • get_frontend_logger
  • get_dev_logger
  • get_dazzle_logger
  • log_frontend_entry
  • get_log_dir
  • get_log_file
  • get_recent_logs
  • get_error_summary
  • clear_logs
  • format
  • format
  • ComponentFilter
  • filter

Dependencies

Imports

  • json
  • logging
  • os
  • sys
  • threading
  • datetime.datetime
  • logging.handlers.RotatingFileHandler
  • pathlib.Path
  • typing.Any

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py
  • tests/unit/test_runtime_mcp_tools.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.