github charmbracelet/log v0.2.0

latest releases: v2.0.0, v1.0.0, v0.4.2...
3 years ago

BREAKING CHANGE

  • Drop functional options.
  • Introduce log.NewWithOptions(io.Writer, log.Options) and log.Options{} to create a new logger with custom options.
  • Add format methods to format the log message just like fmt.Printf().
  • Add log.WithPrefix(string) that returns a new sub-logger with prefix.
  • Parse level from string log.ParseLevel(string)
  • Custom key/value styles.
  • Caller source formatter.
  • And a bunch of bug fixes.

Changelog

New Features

Bug fixes

Dependency updates

  • e6729aa: feat(deps): bump github.com/charmbracelet/lipgloss from 0.7.0 to 0.7.1 (@dependabot[bot])
  • 6630e96: feat(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2 (@dependabot[bot])

Documentation updates

Other work


The Charm logo

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

Don't miss a new log release

NewReleases is sending notifications on new releases.