From: Philipp Holzer Date: Tue, 1 Jan 2019 21:13:27 +0000 (+0100) Subject: Adding more information in case of warning (or dev) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=45bde8fef19fd6e379844303c637382d7a29667c;p=friendica.git Adding more information in case of warning (or dev) --- diff --git a/src/Util/LoggerFactory.php b/src/Util/LoggerFactory.php index e94cd2e971..e7b076bd6d 100644 --- a/src/Util/LoggerFactory.php +++ b/src/Util/LoggerFactory.php @@ -26,6 +26,10 @@ class LoggerFactory { $logger = new Monolog\Logger($channel); $logger->pushProcessor(new Monolog\Processor\PsrLogMessageProcessor()); + $logger->pushProcessor(new Monolog\Processor\ProcessIdProcessor()); + + // Add more information in case of a warning and more + $logger->pushProcessor(new Monolog\Processor\IntrospectionProcessor(LogLevel::WARNING)); return $logger; } @@ -47,6 +51,9 @@ class LoggerFactory { $logger = new Monolog\Logger($channel); $logger->pushProcessor(new Monolog\Processor\PsrLogMessageProcessor()); + $logger->pushProcessor(new Monolog\Processor\ProcessIdProcessor()); + + $logger->pushProcessor(new Monolog\Processor\IntrospectionProcessor()); $logger->pushHandler(new FriendicaDevelopHandler($developerIp));