Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ChaturvediShilpa
Copy link

No description provided.

Shilpa Chaturvedi added 2 commits July 27, 2025 16:09
- Add --json-log flag and STUNNER_JSON_LOG environment variable
- Implement slogWriter to redirect standard log output to JSON format
- Add comprehensive tests for JSON logging functionality
- Add documentation and example for JSON logging
- Use Go's slog package for structured JSON logging

This change enables JSON-formatted logging for Stunner, making it easier
to integrate with log aggregation systems and monitoring tools.
- Add wrapper approach for converting all Stunner logs to JSON format
- Implement StunnerWrapper with automatic JSON logging setup
- Add LoggerInterceptor for comprehensive log capture and conversion
- Include comprehensive tests and documentation
- Add Dockerfile.wrapper for building wrapper image
- Update .gitignore to exclude binary files

The wrapper provides a clean way to convert all standard logs to JSON
without modifying the original Stunner main code.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 16563299709

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 73.342%

Totals Coverage Status
Change from base Build 16018826374: 0.0%
Covered Lines: 1095
Relevant Lines: 1493

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants