go-interview-practice icon indicating copy to clipboard operation
go-interview-practice copied to clipboard

feat: Add Logrus package challenge series

Open LeeFred3042U opened this issue 2 months ago • 3 comments

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, and run_tests.sh
  • Adds the top-level package.json metadata file to register the logrus challenge 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.md file and a hints.md file 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.json metadata file is included and complete
  • [x] The code adheres to the repository's style and contribution guidelines
  • [x] All automated tests are passing

LeeFred3042U avatar Oct 03 '25 20:10 LeeFred3042U