vault / seldaek-monolog / 3.0.0
seldaek-monolog @ 3.0.0
integrity
- size
- 176.0 KiB
- downloaded
- last checked
- overlays
- composer
- detected
- composer monolog/monolog
release notes
This is mostly a cleanup release offering stronger type guarantees for integrators with the array->object/enum changes, but there is no big new feature for end users.
See UPGRADE notes for details on all breaking changes especially if you are extending/implementing Monolog classes/interfaces.
Noteworthy BC Breaks:
- The minimum supported PHP version is now
8.1.0. - Log records have been converted from an array to a
Monolog\LogRecordobject with public (and mostly readonly) properties. e.g. instead of doing$record['context']use$record->context. In formatters or handlers if you rather need an array to work with you can use$record->toArray()to get back a Monolog 1/2 style record array. This will contain the enum values instead of enum cases in thelevelandlevel_namekeys to be more backwards compatible and use simpler data types. FormatterInterface,HandlerInterface,ProcessorInterface, etc. changed to containLogRecord $recordinstead ofarray $recordparameter types. If you want to support multiple Monolog versions this should be possible by type-hinting nothing, orarray|LogRecordif you support PHP 8.0+. You can then code against the $record using Monolog 2 style as LogRecord implements ArrayAccess for BC. The interfaces do not require aLogRecordreturn type even where it would be applicable, but if you only support Monolog 3 in integration code I would recommend you useLogRecordreturn types wherever fitting to ensure forward compatibility as it may be added in Monolog 4.- Log levels are now stored as an enum
Monolog\Level - Removed deprecated SwiftMailerHandler, migrate to SymfonyMailerHandler instead.
ResettableInterface::reset()now requires a void return type.- All properties have had types added, which may require you to do so as well if you extended a Monolog class and declared the same property.
New deprecations:
Logger::DEBUG,Logger::ERROR, etc. are now deprecated in favor of theMonolog\Levelenum. e.g. instead ofLogger::WARNINGuseLevel::Warningif you need to pass the enum case to Monolog or one of its handlers, orLevel::Warning->valueif you need the integer value equal to whatLogger::WARNINGwas giving you.Logger::getLevelName()is now deprecated.
download
unix · zip
curl -fL -o 3.0.0.zip https://ratatoskr.space/pkg/seldaek-monolog/3.0.0.zip
printf '%s %s\n' 'fa97d21d3226a9514635c7dcf56e41054690db8b861a2f393bf953961989cae3' '3.0.0.zip' | sha256sum -c -
windows · zip
$url = "https://ratatoskr.space/pkg/seldaek-monolog/3.0.0.zip"
$out = "3.0.0.zip"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "fa97d21d3226a9514635c7dcf56e41054690db8b861a2f393bf953961989cae3") { throw "sha256 mismatch" }
unix · tar.gz
curl -fL -o 3.0.0.tar.gz https://ratatoskr.space/pkg/seldaek-monolog/3.0.0.tar.gz
printf '%s %s\n' '4edccb07238957dbbfd1cb5687f7d40ebed5d6cf93041b08b2c579f46497aad6' '3.0.0.tar.gz' | sha256sum -c -
windows · tar.gz
$url = "https://ratatoskr.space/pkg/seldaek-monolog/3.0.0.tar.gz"
$out = "3.0.0.tar.gz"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "4edccb07238957dbbfd1cb5687f7d40ebed5d6cf93041b08b2c579f46497aad6") { throw "sha256 mismatch" }
download via yggdrasil mesh
unix · zip
curl -fL -o 3.0.0.zip http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/seldaek-monolog/3.0.0.zip
printf '%s %s\n' 'fa97d21d3226a9514635c7dcf56e41054690db8b861a2f393bf953961989cae3' '3.0.0.zip' | sha256sum -c -
windows · zip
$url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/seldaek-monolog/3.0.0.zip"
$out = "3.0.0.zip"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "fa97d21d3226a9514635c7dcf56e41054690db8b861a2f393bf953961989cae3") { throw "sha256 mismatch" }
unix · tar.gz
curl -fL -o 3.0.0.tar.gz http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/seldaek-monolog/3.0.0.tar.gz
printf '%s %s\n' '4edccb07238957dbbfd1cb5687f7d40ebed5d6cf93041b08b2c579f46497aad6' '3.0.0.tar.gz' | sha256sum -c -
windows · tar.gz
$url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/seldaek-monolog/3.0.0.tar.gz"
$out = "3.0.0.tar.gz"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "4edccb07238957dbbfd1cb5687f7d40ebed5d6cf93041b08b2c579f46497aad6") { throw "sha256 mismatch" }
| artifact | format | size | hashes |
|---|---|---|---|
| 3.0.0.zip | zip | 177.8 KiB |
blake3-24 7c211943ff7fe3680d0f9cb1b70e864ebc450863a2c776eb
sha256 fa97d21d3226a9514635c7dcf56e41054690db8b861a2f393bf953961989cae3
sha1 ecf2b49fa1a6f21082edf5ff2effefeead4ed6a4
|
| 3.0.0.tar.gz | tar.gz | 98.4 KiB |
blake3-24 8e93be0a1aef705a5c80db115fd495924c81fba674bd3428
sha256 4edccb07238957dbbfd1cb5687f7d40ebed5d6cf93041b08b2c579f46497aad6
sha1 8b61ea3bf26014807d297492f7d728a90a76083d
|
install
bazel
http_archive(
name = "seldaek-monolog",
urls = ["https://ratatoskr.space/pkg/seldaek-monolog/3.0.0.tar.gz"],
integrity = "sha256-TtzLByOJV9u/0ctWh/fUDr7V1s+TBBsIssV59GSXqtY=",
strip_prefix = "seldaek-monolog-3.0.0",
)
zig
.url = "https://ratatoskr.space/pkg/seldaek-monolog/3.0.0.tar.gz",
composer
composer config repositories.yggvault composer https://ratatoskr.space/pkg composer require monolog/monolog:3.0.0
install via yggdrasil mesh
bazel
http_archive(
name = "seldaek-monolog",
urls = ["http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/seldaek-monolog/3.0.0.tar.gz"],
integrity = "sha256-TtzLByOJV9u/0ctWh/fUDr7V1s+TBBsIssV59GSXqtY=",
strip_prefix = "seldaek-monolog-3.0.0",
)
zig
.url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/seldaek-monolog/3.0.0.tar.gz",
composer
composer config secure-http false composer config repositories.yggvault composer http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg composer require monolog/monolog:3.0.0