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