sforkowany z mirror/friendica
Making the processor name more explicit
rodzic
26af96f31a
commit
d7e35b5802
|
@ -11,7 +11,7 @@ use Monolog\Processor\ProcessorInterface;
|
||||||
* Based on the class IntrospectionProcessor without the "class" information
|
* Based on the class IntrospectionProcessor without the "class" information
|
||||||
* @see IntrospectionProcessor
|
* @see IntrospectionProcessor
|
||||||
*/
|
*/
|
||||||
class FriendicaProcessor implements ProcessorInterface
|
class FriendicaIntrospectionProcessor implements ProcessorInterface
|
||||||
{
|
{
|
||||||
private $level;
|
private $level;
|
||||||
|
|
|
@ -4,7 +4,7 @@ namespace Friendica\Util;
|
||||||
|
|
||||||
use Friendica\Network\HTTPException\InternalServerErrorException;
|
use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||||
use Friendica\Util\Logger\FriendicaDevelopHandler;
|
use Friendica\Util\Logger\FriendicaDevelopHandler;
|
||||||
use Friendica\Util\Logger\FriendicaProcessor;
|
use Friendica\Util\Logger\FriendicaIntrospectionProcessor;
|
||||||
use Monolog;
|
use Monolog;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
use Psr\Log\LogLevel;
|
use Psr\Log\LogLevel;
|
||||||
|
@ -29,7 +29,7 @@ class LoggerFactory
|
||||||
$logger->pushProcessor(new Monolog\Processor\PsrLogMessageProcessor());
|
$logger->pushProcessor(new Monolog\Processor\PsrLogMessageProcessor());
|
||||||
$logger->pushProcessor(new Monolog\Processor\ProcessIdProcessor());
|
$logger->pushProcessor(new Monolog\Processor\ProcessIdProcessor());
|
||||||
$logger->pushProcessor(new Monolog\Processor\UidProcessor());
|
$logger->pushProcessor(new Monolog\Processor\UidProcessor());
|
||||||
$logger->pushProcessor(new FriendicaProcessor(LogLevel::DEBUG, ['Friendica\\Core\\Logger']));
|
$logger->pushProcessor(new FriendicaIntrospectionProcessor(LogLevel::DEBUG, ['Friendica\\Core\\Logger']));
|
||||||
|
|
||||||
return $logger;
|
return $logger;
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ class LoggerFactory
|
||||||
$logger->pushProcessor(new Monolog\Processor\PsrLogMessageProcessor());
|
$logger->pushProcessor(new Monolog\Processor\PsrLogMessageProcessor());
|
||||||
$logger->pushProcessor(new Monolog\Processor\ProcessIdProcessor());
|
$logger->pushProcessor(new Monolog\Processor\ProcessIdProcessor());
|
||||||
$logger->pushProcessor(new Monolog\Processor\UidProcessor());
|
$logger->pushProcessor(new Monolog\Processor\UidProcessor());
|
||||||
$logger->pushProcessor(new FriendicaProcessor(LogLevel::DEBUG, ['Friendica\\Core\\Logger']));
|
$logger->pushProcessor(new FriendicaIntrospectionProcessor(LogLevel::DEBUG, ['Friendica\\Core\\Logger']));
|
||||||
|
|
||||||
|
|
||||||
$logger->pushHandler(new FriendicaDevelopHandler($developerIp));
|
$logger->pushHandler(new FriendicaDevelopHandler($developerIp));
|
||||||
|
|
Ładowanie…
Reference in New Issue