You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During our update from composer 1 to composer 2 we encountered issues with version 1.0.1 of this library.
Description
composer 1
When running composer dumpautoload -o with composer 1, you get this output:
Generating optimized autoload files
Deprecation Notice: Class NewRelic\Monolog\Enricher\AbstractFormatter located in ./vendor/newrelic/monolog-enricher/src/Formatter.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///tmp/newrelic/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class NewRelic\Monolog\Enricher\AbstractHandler located in ./vendor/newrelic/monolog-enricher/src/Handler.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///tmp/newrelic/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201
Generated optimized autoload files containing 122 classes
When running composer dumpautoload -o with composer 2, you get this output:
Generating optimized autoload files
Class NewRelic\Monolog\Enricher\AbstractFormatter located in ./vendor/newrelic/monolog-enricher/src/Formatter.php does not comply with psr-4 autoloading standard. Skipping.
Class NewRelic\Monolog\Enricher\AbstractHandler located in ./vendor/newrelic/monolog-enricher/src/Handler.php does not comply with psr-4 autoloading standard. Skipping.
Generated optimized autoload files containing 121 classes
The class map is generated without references to the abstract classes:
monolog/monolog 2.3.5 Sends your logs to files, sockets, inboxes, databases and various web services
newrelic/monolog-enricher 1.0.1 Monolog components to enable New Relic Logs
Linux AUX-LAP-200 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
During our update from composer 1 to composer 2 we encountered issues with version 1.0.1 of this library.
Description
composer 1
When running
composer dumpautoload -o
with composer 1, you get this output:However, the class map is generated correctly:
composer 2
When running
composer dumpautoload -o
with composer 2, you get this output:The class map is generated without references to the abstract classes:
Steps to Reproduce
use composer 1 or 2 (see above)
Expected Behaviour
No deprecation warnings with composer 1/2 and a complete optimized class map with composer 2.
Relevant Logs / Code Samples
Your Environment
PHP 8.0.2 (cli) (built: Feb 23 2021 14:52:59) ( NTS )
monolog/monolog 2.3.5 Sends your logs to files, sockets, inboxes, databases and various web services
newrelic/monolog-enricher 1.0.1 Monolog components to enable New Relic Logs
Linux AUX-LAP-200 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
Additional context
The text was updated successfully, but these errors were encountered: