Bonjour,
Mon plugin contient les lignes suivantes:
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
Pour utiliser les logs Monolog
En V4_4 stable/beta/alpha et debian 10/11, pas de souci
En V4_4 beta et debian 12, j’ai une erreur quand je vais dans l’interface du plugin sur fond rouge :
Interface "Psr\Log\LoggerInterface" not found
Le plugin teleinfo a aussi le même comportement. j’ai dans les logs cron execution :
[Erreur] Monitoring::pullLocal() : Interface "Psr\Log\LoggerInterface" not foundPHP Fatal error: Uncaught Error: Interface "Psr\Log\LoggerInterface" not found in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php:28
Stack trace:
#0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
#1 /var/www/html/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 /var/www/html/core/class/log.class.php(55): Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/html/core/class/log.class.php(110): log::getLogger()
#4 /var/www/html/core/php/jeeCron.php(36): log::add()
#5 /var/www/html/core/php/jeeCron.php(166): jeeCron_errorHandler()
#6 {main}
thrown in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php on line 28
sh: 1: /sbin/apcaccess: not found
[Erreur] plugin::cron() : Interface "Psr\Log\LoggerInterface" not foundPHP Fatal error: Uncaught Error: Interface "Psr\Log\LoggerInterface" not found in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php:28
Stack trace:
#0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
#1 /var/www/html/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 /var/www/html/core/class/log.class.php(55): Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/html/core/class/log.class.php(110): log::getLogger()
#4 /var/www/html/core/php/jeeCron.php(36): log::add()
#5 /var/www/html/core/php/jeeCron.php(166): jeeCron_errorHandler()
#6 {main}
thrown in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php on line 28
[Erreur] heliotrope::pull() : Interface "Psr\Log\LoggerInterface" not foundPHP Fatal error: Uncaught Error: Interface "Psr\Log\LoggerInterface" not found in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php:28
Stack trace:
#0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
#1 /var/www/html/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 /var/www/html/core/class/log.class.php(55): Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/html/core/class/log.class.php(110): log::getLogger()
#4 /var/www/html/core/php/jeeCron.php(36): log::add()
#5 /var/www/html/core/php/jeeCron.php(166): jeeCron_errorHandler()
#6 {main}
thrown in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php on line 28
[Erreur] Monitoring::pull() : Interface "Psr\Log\LoggerInterface" not foundPHP Fatal error: Uncaught Error: Interface "Psr\Log\LoggerInterface" not found in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php:28
Stack trace:
#0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
#1 /var/www/html/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 /var/www/html/core/class/log.class.php(55): Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/html/core/class/log.class.php(110): log::getLogger()
#4 /var/www/html/core/php/jeeCron.php(36): log::add()
#5 /var/www/html/core/php/jeeCron.php(166): jeeCron_errorHandler()
#6 {main}
thrown in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php on line 28
[Erreur] plugin::cron15() : Interface "Psr\Log\LoggerInterface" not foundPHP Fatal error: Uncaught Error: Interface "Psr\Log\LoggerInterface" not found in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php:28
Stack trace:
#0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
#1 /var/www/html/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 /var/www/html/core/class/log.class.php(55): Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/html/core/class/log.class.php(110): log::getLogger()
#4 /var/www/html/core/php/jeeCron.php(36): log::add()
#5 /var/www/html/core/php/jeeCron.php(166): jeeCron_errorHandler()
#6 {main}
thrown in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php on line 28
[Erreur] plugin::cron5() : Interface "Psr\Log\LoggerInterface" not foundPHP Fatal error: Uncaught Error: Interface "Psr\Log\LoggerInterface" not found in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php:28
Stack trace:
#0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
#1 /var/www/html/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 /var/www/html/core/class/log.class.php(55): Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/html/core/class/log.class.php(110): log::getLogger()
#4 /var/www/html/core/php/jeeCron.php(36): log::add()
#5 /var/www/html/core/php/jeeCron.php(166): jeeCron_errorHandler()
#6 {main}
thrown in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php on line 28
[Erreur] Monitoring::pullLocal() : Interface "Psr\Log\LoggerInterface" not foundPHP Fatal error: Uncaught Error: Interface "Psr\Log\LoggerInterface" not found in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php:28
Stack trace:
#0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
#1 /var/www/html/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 /var/www/html/core/class/log.class.php(55): Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/html/core/class/log.class.php(110): log::getLogger()
#4 /var/www/html/core/php/jeeCron.php(36): log::add()
#5 /var/www/html/core/php/jeeCron.php(166): jeeCron_errorHandler()
#6 {main}
thrown in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php on line 28
[Erreur] plugin::checkDeamon() : Interface "Psr\Log\LoggerInterface" not foundPHP Fatal error: Uncaught Error: Interface "Psr\Log\LoggerInterface" not found in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php:28
Stack trace:
#0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
#1 /var/www/html/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 /var/www/html/core/class/log.class.php(55): Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/html/core/class/log.class.php(110): log::getLogger()
#4 /var/www/html/core/php/jeeCron.php(36): log::add()
#5 /var/www/html/core/php/jeeCron.php(166): jeeCron_errorHandler()
#6 {main}
thrown in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php on line 28
[Erreur] teleinfo::calculateTodayStats() : Interface "Psr\Log\LoggerInterface" not foundPHP Fatal error: Uncaught Error: Interface "Psr\Log\LoggerInterface" not found in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php:28
Stack trace:
#0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
#1 /var/www/html/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 /var/www/html/core/class/log.class.php(55): Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/html/core/class/log.class.php(110): log::getLogger()
#4 /var/www/html/core/php/jeeCron.php(36): log::add()
#5 /var/www/html/core/php/jeeCron.php(166): jeeCron_errorHandler()
#6 {main}
thrown in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php on line 28
sh: 1: /sbin/apcaccess: not found
[Erreur] plugin::cron() : Interface "Psr\Log\LoggerInterface" not foundPHP Fatal error: Uncaught Error: Interface "Psr\Log\LoggerInterface" not found in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php:28
Stack trace:
#0 /var/www/html/vendor/composer/ClassLoader.php(576): include()
#1 /var/www/html/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 /var/www/html/core/class/log.class.php(55): Composer\Autoload\ClassLoader->loadClass()
#3 /var/www/html/core/class/log.class.php(110): log::getLogger()
#4 /var/www/html/core/php/jeeCron.php(36): log::add()
#5 /var/www/html/core/php/jeeCron.php(166): jeeCron_errorHandler()
#6 {main}
thrown in /var/www/html/vendor/monolog/monolog/src/Monolog/Logger.php on line 28