stunner
stunner copied to clipboard
feat: Add JSON logging support
- 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.
Pull Request Test Coverage Report for Build 16550235696
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 | |
|---|---|
| Change from base Build 16018826374: | 0.0% |
| Covered Lines: | 1095 |
| Relevant Lines: | 1493 |
💛 - Coveralls
@ChaturvediShilpa It seems pion has just obtained a structured logger: https://github.com/pion/zapion. Seems to miss a couple of functions to be a full drop-in replacement for pion/logging, but it may be useful to track. We would really like to have JSON logging implemented sooner than later.