mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:50:11 +00:00
Merge pull request #6723 from nupplaphil/issue/6658-worker_id
Adding worker ID to log
This commit is contained in:
commit
1a0398a5b3
6 changed files with 355 additions and 39 deletions
|
@ -7,6 +7,7 @@ use Friendica\Core\Logger;
|
|||
use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||
use Friendica\Util\Logger\FriendicaDevelopHandler;
|
||||
use Friendica\Util\Logger\FriendicaIntrospectionProcessor;
|
||||
use Friendica\Util\Logger\WorkerLogger;
|
||||
use Friendica\Util\Profiler;
|
||||
use Monolog;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
@ -33,7 +34,7 @@ class LoggerFactory
|
|||
$logger->pushProcessor(new Monolog\Processor\PsrLogMessageProcessor());
|
||||
$logger->pushProcessor(new Monolog\Processor\ProcessIdProcessor());
|
||||
$logger->pushProcessor(new Monolog\Processor\UidProcessor());
|
||||
$logger->pushProcessor(new FriendicaIntrospectionProcessor(LogLevel::DEBUG, [Logger::class, Profiler::class]));
|
||||
$logger->pushProcessor(new FriendicaIntrospectionProcessor(LogLevel::DEBUG, [Logger::class, Profiler::class, WorkerLogger::class]));
|
||||
|
||||
$debugging = $config->get('system', 'debugging');
|
||||
$stream = $config->get('system', 'logfile');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue