feat: add structured logging and integrate formatting into CI/CD#5
Merged
Conversation
- Complete README rewrite with clear WHY → WHAT → HOW structure - Position template as production engineering foundation, not ML tutorial - Reference foundational article at top for credibility and context - Remove floating code examples and focus on template's actual value - Update CLAUDE.md with new Makefile targets and production-first guidance - Clean project structure - removed artificial complexity 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add comprehensive structured logging with JSON and human-readable modes - Support for correlation IDs, context management, and AI-specific metrics - Add pre-commit hook for automatic code formatting - Integrate format job into CI/CD pipeline before linting - Update validate-branch target to include formatting - Achieve 96% test coverage with defensive logging tests - Fix module import issues for ai_base_template namespace 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Move imports to top of test_main.py for better organization - Remove redundant docstrings that violate CLAUDE.md guidelines - Keep only meaningful docstrings that explain complex functionality - All tests pass and code quality checks maintained 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add comprehensive Production Logging System section with concrete examples - Highlight dual-mode logging (human-readable dev vs JSON production) - Document correlation ID tracking and context isolation features - Update project structure to showcase logging.py and test_logging.py - Position template as having enterprise-grade observability built-in - Add structlog to technologies section 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ai_base_templatenamespaceKey Features
Technical Changes
ai_base_template/logging.pywith comprehensive logging infrastructureformat→lint→type-check→testvalidate-branchtarget to include formattingai_sql_assistant→ai_base_template)Test Results
🤖 Generated with Claude Code