mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-05-30 15:42:25 +00:00
905 B
905 B
BitLogger Update Changes
version 0.4.0
Feature
- feat: add
ColorMode = Never | Auto | Alwaysfor text formatter color control - feat: add ANSI level, target, timestamp, and field rendering to
format_text(...) - feat: add
color_modetoTextFormatterandTextFormatterConfig - feat: support
text_formatter.color_modein JSON config parsing and serialization
Test
- test: cover ANSI text formatter rendering in
Alwaysmode - test: cover
Automode fallback behavior whenNO_COLORis present - test: cover config parsing and serialization for
color_mode
Example
- docs: add
color_modeusage examples to formatter documentation
Notes
Autocurrently uses a conservative rule: ifNO_COLORexists, ANSI is disabled; otherwise ANSI is enabled- this batch only covers ANSI formatter output and does not yet include inline style markup or tag registry support