Skip to content

feat(logging): Implement configurable Logger service with ANSI styling and context awareness #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 24, 2025

Conversation

m-mdy-m
Copy link
Member

@m-mdy-m m-mdy-m commented Feb 24, 2025

  • Core Logger class implementing LoggerService interface
  • Comprehensive logging API supporting 5 severity levels
  • ANSI style management system with 16 color combinations
  • Contextual logging with customizable display options
  • Documentation (docs/api/logger.doc.md) covering:
    • Configuration options
    • Style customization guide
    • Best practices for production use
    • Performance considerations
  • Type-safe configuration through LoggerOptions interface
  • Formatting handlers for:
    • Error object stack traces
    • Complex object visualization
    • Primitive value styling
  • Log filtering system with level-based controls
  • Cross-platform color support detection

This implementation establishes a foundation for application diagnostics, balancing developer experience with production robustness. The logger serves as a core observability tool while maintaining zero dependencies.

View Documentation

…g and context awareness

- Core `Logger` class implementing `LoggerService` interface
- Comprehensive logging API supporting 5 severity levels
- ANSI style management system with 16 color combinations
- Contextual logging with customizable display options
- Documentation (`docs/api/logger.doc.md`) covering:
  - Configuration options
  - Style customization guide
  - Best practices for production use
  - Performance considerations
- Type-safe configuration through `LoggerOptions` interface
- Formatting handlers for:
  - Error object stack traces
  - Complex object visualization
  - Primitive value styling
- Log filtering system with level-based controls
- Cross-platform color support detection

This implementation establishes a foundation for application diagnostics, balancing developer experience with production robustness. The logger serves as a core observability tool while maintaining zero dependencies.

[View Documentation](https://github.com/medishen/toolkit/blob/main/docs/api/logger.doc.md)
@m-mdy-m m-mdy-m merged commit fd4ce72 into main Feb 24, 2025
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.

1 participant