Skip to content

v0.15.0

Compare
Choose a tag to compare
@ellisonc ellisonc released this 10 Mar 15:52
· 12 commits to master since this release
6fcd21e

What's Changed

New Contributors

Full Changelog: v0.14.0...v0.15.0

Migration Guide

Previously cli applications were created by calling entrypoint.NewApp(), then the application name and version were set after the fact for both the logging and the CLI description.
The new way to do this is a single call to entrypoint.NewApp(name, version)

Calling logging.GetLogger(name, version) will now return a logrus Entry instead of a logrus Logger. This entry has the name and version preset.

The behavior of the default logger is the same as in previous versions of go-commons.

A new JSON logger is available by calling logging.SetGLobalLogFormatter("json")