Skip to content

3.0.0

Latest

Choose a tag to compare

@Firehed Firehed released this 17 Sep 00:01
8586da0

Version 3 is here

Version 3.0 makes a large number of internal updates enabled by modern versions of PHP. In doing so, it also drops support for versions that are no longer under active maintenance (8.0 and older).

Major new features

Formatting has been completely overhauled

The core loggers now accept a FormatterInterface object, which is responsible for interpolating messages and producing an appropriate format. The existing format continues to be supported, along with basic customization, through the DefaultFormatter, which will be used if no formatter is provided.

A logfmt formatter is also included, which greatly simplifies modern structured logging. Any context values that are not interpolated into the message will be added as structured outputs. See the README for details and usage instructions.

BC Breaks

If you have been using the library with default values, there should be no BC breaks that affect you.

Non-PSR methods that aren't added to an explicit interface have been removed, and some formatting tools have been restructured. If you were heavily customizing the formatter or had extended the internal Base class, you will likely need to make changes.

See UPGRADING.md for details.

What's Changed

Full Changelog: 2.5.0...3.0.0