Browse Source

Adding more information in case of warning (or dev)

pull/6482/head
Philipp Holzer 2 years ago
committed by Hypolite Petovan
parent
commit
45bde8fef1
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/Util/LoggerFactory.php

+ 7
- 0
src/Util/LoggerFactory.php 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));


Loading…
Cancel
Save