Skip to content

v0.3.0

Compare
Choose a tag to compare
@github-actions github-actions released this 07 Nov 14:15
· 36 commits to main since this release
1231b7b

This new release of Log adds support for log/slog, and per-instance styles, and includes bug fixes. You can now use Log as a log/slog handler in your applications. Log comes with its own JSON and Logfmt formatters, on the other hand, Slog uses different handlers for these formats.

Breaking Changes!

  • Bump the minimum GoLang version to 1.19
  • Change the default timestamp key from ts to time to match log/slog
  • Change the default level key from lvl to level to match log/slog
  • ParseLevel() now returns an error if parse failed to find a level in string
  • Default levels values changed to be increments of 4 i.e. DebugLevel = -4, InfoLevel = 0, WarnLevel = 4, ...
  • Global styles are replaced with DefaultStyles() and SetStyles()

Changelog

New Features

Bug fixes

Dependency updates

  • e5a733b: feat(deps): bump github.com/charmbracelet/lipgloss from 0.8.0 to 0.9.1 (#76) (@dependabot[bot])

Other work


The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.