From d5629f6149a28138a491194b7bb661a0a3913faa Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Thu, 3 Oct 2024 12:14:58 +0200 Subject: [PATCH] feat: add download logs action INT-667 Needs myparcelnl/pdk#288 Needs myparcelnl/js-pdk#221 --- src/Pdk/Logger/PsLogger.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Pdk/Logger/PsLogger.php b/src/Pdk/Logger/PsLogger.php index 6d4b02ed..12495722 100644 --- a/src/Pdk/Logger/PsLogger.php +++ b/src/Pdk/Logger/PsLogger.php @@ -48,6 +48,16 @@ public function __construct(FileSystemInterface $fileSystem) $this->createLogDirectory(); } + /** + * @return string[] + */ + public function getLogFiles(): array + { + return array_map(function (string $level): string { + return $this->getLogFilename($level); + }, self::LOG_LEVELS); + } + /** * @param string $level * @param \Throwable|array|string $message