go-interview-practice
go-interview-practice copied to clipboard
feat: Add Logrus package challenge series
Description
This PR introduces a comprehensive, four-part package challenge series for the logrus structured logging library. It fulfills all the requirements outlined in issue #474, providing a complete learning path from beginner concepts to advanced, production-ready logging patterns
Summary of Changes
- Adds a new package directory:
packages/logrus/ - Implements four progressive challenges, each in its own sub-directory
- Challenge 1: Basic Logging & Levels (Beginner)
- Challenge 2: Structured Logging & Fields (Intermediate)
- Challenge 3: Advanced Configuration & Hooks (Intermediate)
- Challenge 4: Production Logging Patterns (Advanced)
- Each challenge is self-contained and includes the full set of required files:
README.md,learning.md,hints.md,solution-template.go,solution-template_test.go,metadata.json,go.mod/go.sum, andrun_tests.sh - Adds the top-level
package.jsonmetadata file to register thelogruschallenge series with the learning platform
Key Highlights
- Progressive Learning Curve: The series is designed to guide users from basic logger setup to advanced architectural patterns like custom hooks and multi-destination logging
- Production-Focused: The later challenges introduce real-world concepts like correlation IDs, custom hooks for alerting, and the principles behind centralized logging with systems like the ELK stack
- Comprehensive Educational Content: Each challenge includes a detailed
learning.mdfile and ahints.mdfile to provide a rich, supportive learning experience - Robustly Tested: Every challenge is accompanied by a comprehensive test suite to validate the user's implementation against all requirements
Self-Review Checklist
- [x] This PR resolves issue #474
- [x] All 4 challenges have been implemented with the complete file structure
- [x] The
package.jsonmetadata file is included and complete - [x] The code adheres to the repository's style and contribution guidelines
- [x] All automated tests are passing