]> git.mxchange.org Git - friendica.git/commitdiff
Adding more information in case of warning (or dev)
authorPhilipp Holzer <admin@philipp.info>
Tue, 1 Jan 2019 21:13:27 +0000 (22:13 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 14:59:11 +0000 (09:59 -0500)
src/Util/LoggerFactory.php

index e94cd2e971d04d436a84b8477e8be6f047e17b09..e7b076bd6d9a225fba6f7aaf9636024ab222479f 100644 (file)
@@ -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));