Skip to content

v0.1.2: Enhanced Logging Formatter & Documentation

Choose a tag to compare

@Yrrrrrf Yrrrrrf released this 01 Jun 06:03
· 9 commits to main since this release

This release focuses on significantly improving the robustness and visual correctness of the dlog logging module, along with adding comprehensive documentation for it.

✨ Enhancements & Fixes

  • Improved dlog Formatter:

    • Correct Multi-line Handling: Multi-line log messages now have proper indentation for subsequent lines, aligning correctly with the first line's content. Continuation characters (│ or └) are used and styled for better readability.
    • Robust ANSI Style Preservation: User-applied ANSI styling (colors, bold, italic, etc. using dev_utils::format) within log messages is now correctly preserved and rendered across multiple lines without unexpected bleed-through.
    • Consistent Level Display: Log level indicators (e.g., INFO, ERROR) are now consistently padded and aligned.
    • Styled Timestamps: Timestamps in log output are now styled (dimmed) for better visual separation.
    • Resolved previous issues where user-applied styles could interfere with the logger's own formatting or not display as intended in multi-line scenarios.
  • Comprehensive dlog Documentation:

    • Added detailed doc comments to the dlog.rs file, explaining the purpose, features, and usage of the logging module, its components (Level, DlogStyle), and macros. This will improve developer experience and make it easier to understand and use the dlog functionality.

Changes

# You can generate this part using:
# git log v0.1.1..HEAD --pretty=format:"* %s (%h) by @%an" --abbrev-commit
# Or manually list the most important commits. Example:
  • Refactor(dlog): Improve multi-line formatting and ANSI style preservation (<commit_hash>) by @Yrrrrrf
  • Docs(dlog): Add comprehensive documentation for the logging module (<commit_hash>) by @Yrrrrrf

🙏 Special Thanks

Thank you for using Dev Utils! I hope these improvements make your development logging experience even better.