1
0
Fork 0

Adding more information in case of warning (or dev)

This commit is contained in:
Philipp Holzer 2019-01-01 22:13:27 +01:00 committed by Hypolite Petovan
parent 6150c2fa9c
commit 45bde8fef1

View 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));