When I switch to "PROD" env (in .env file), and clearing cache, I get this error for the monolog extension:
Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 1 !! !! In FileLoader.php line 168: !!
!! There is no extension able to load the configuration for "monolog" (in /Use !!
rs/antoinenedelec/Documents/symfony/boxbox/config/packages/monolog.yaml). L !! ooked for namespace "monolog", found "framework", "sensio_framework_extra", !! "twig", "security", "fos_user", "doctrine_cache", "doctrine", "doctrine_mi !! grations", "swiftmailer" in /Users/antoinenedelec/Documents/symfony/boxbox/ !! config/packages/monolog.yaml (which is loaded in resource "/Users/antoinene !!
delec/Documents/symfony/boxbox/config/packages/monolog.yaml").
!!
!! !! In YamlFileLoader.php line 657: !!
!! There is no extension able to load the configuration for "monolog" (in /Use !!
rs/antoinenedelec/Documents/symfony/boxbox/config/packages/monolog.yaml). L !! ooked for namespace "monolog", found "framework", "sensio_framework_extra", !! "twig", "security", "fos_user", "doctrine_cache", "doctrine", "doctrine_mi !! grations", "swiftmailer" !! !! !! Script @auto-scripts was called via post-update-cmd antoinenedelec@macbook-pro-de-antoine ~/Documents/symfony/boxbox$
I do have a monolog.yaml in packages and in package/prod. Everything is working great in DEV env.
Using Symfony 4 & PHP 7.1.13