From 8bdd2bfa9b16cda18d6cce303ca2712e319ccf58 Mon Sep 17 00:00:00 2001 From: Christoph Lehmann Date: Sat, 10 Feb 2024 14:01:16 +0100 Subject: [PATCH] Add command line --- Classes/Writer/JsonWriter.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classes/Writer/JsonWriter.php b/Classes/Writer/JsonWriter.php index 403d041..876b9fb 100644 --- a/Classes/Writer/JsonWriter.php +++ b/Classes/Writer/JsonWriter.php @@ -58,6 +58,9 @@ public function writeLog(LogRecord $record) if ($requestId) { $data['request_id'] = $requestId; } + } else { + global $argv; + $data['command_line'] = implode(' ', $argv); } if ($this->options !== []) {