3 namespace Friendica\App;
5 use Monolog\Processor\ProcessorInterface;
8 * Includes the Friendica specific process_id of "app->process_id"
10 * @package Friendica\App
12 class FriendicaLoggerProcessor implements ProcessorInterface
15 * @var string the ID of the current Friendica process
17 private $processId = null;
20 * Set the process id based on the Application instance
22 * @param string $processId the process id
24 public function setProcessId($processId)
26 if (!isset($this->processId) || $this->processId == '')
28 $this->processId = $processId;
32 public function __construct()
34 $this->processId = session_id();
37 public function __invoke(array $records)
39 $records['extra'] = array_merge(
42 'app_id' => $this->processId,