All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
2.1.2 - 2022-05-17
- Datetime format #23.
2.1.1 - 2022-04-21
- Removed function
strftime
, deprecated in PHP 8.1 #22. - Fix message size return when body size is unknown #21.
2.1.0 - 2022-04-01
- Added 3rd argument to context function: $message #20
- Make tests more strict #19
2.0.0 - 2020-12-02
- Support for PHP 8
- Support for PHP 7.0 and 7.1
1.2.0 - 2019-02-28
- Improved usage of log levels, allowing people to have more control on what goes into their production log handler
- Use
phpstan
as a dev dependency to detect bugs
1.1.0 - 2018-08-04
- PSR-17 support
1.0.0 - 2018-01-27
- Improved testing and added code coverage reporting
- Added tests for PHP 7.2
- Upgraded to the final version of PSR-15
psr/http-server-middleware
- Updated license year
0.10.0 - 2017-11-13
- Replaced
http-interop/http-middleware
withhttp-interop/http-server-middleware
.
- Removed support for PHP 5.x.
0.9.0 - 2017-10-01
- New option
context
to generate a context to the log message
0.8.0 - 2017-09-21
- Updated to
http-interop/http-middleware#0.5
0.7.0 - 2017-09-04
- Support to log request attributes using the
%{VARNAME}n
directive - Added a list of all supported directives in the README.md
- Append
.dist
suffix to phpcs.xml and phpunit.xml files - Changed the configuration of phpcs and php_cs
- Upgraded phpunit to the latest version and improved its config file
0.6.1 - 2017-04-07
- Fixed local ip address detection
- Added more tests
0.6.0 - 2017-04-06
- Option
hostnameLookups
to enable this flag - Option
format
to customize the message log format - New constants with predefined formats:
AccessLog::FORMAT_COMMON
AccessLog::FORMAT_COMMON_VHOST
AccessLog::FORMAT_COMBINED
AccessLog::FORMAT_REFERER
AccessLog::FORMAT_AGENT
AccessLog::FORMAT_VHOST
AccessLog::FORMAT_COMMON_DEBIAN
AccessLog::FORMAT_COMBINED_DEBIAN
AccessLog::FORMAT_VHOST_COMBINED_DEBIAN
- Rewrited the middleware in order to be more flexible
- The options
vhost
andcombined
are not longer available
0.5.0 - 2017-04-03
- Option to read client ip from attribute
- Fixed protocol string
- Write dash on empty body
0.4.1 - 2017-04-01
- Write dash in identd position
- Write dash on missing ip
- Forced a
/
is the uri path is empty
0.4.0 - 2017-03-30
- Option to prefix the Virtual Host info
0.3.0 - 2016-12-26
- Updated tests
- Updated to
http-interop/http-middleware#0.4
- Updated
friendsofphp/php-cs-fixer#2.0
0.2.0 - 2016-11-27
- Updated to
http-interop/http-middleware#0.3
0.1.0 - 2016-10-09
First version