Skip to content

Commit

Permalink
feat: add download logs action
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Oct 9, 2024
1 parent 110a7bb commit 312d30f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Pdk/Logger/PsLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ public function __construct(FileSystemInterface $fileSystem)
$this->createLogDirectory();
}

/**
* @return string[]
*/
public function getLogFiles(): array

Check warning on line 54 in src/Pdk/Logger/PsLogger.php

View check run for this annotation

Codecov / codecov/patch

src/Pdk/Logger/PsLogger.php#L54

Added line #L54 was not covered by tests
{
return array_map(function (string $level): string {
return $this->getLogFilename($level);
}, self::LOG_LEVELS);

Check warning on line 58 in src/Pdk/Logger/PsLogger.php

View check run for this annotation

Codecov / codecov/patch

src/Pdk/Logger/PsLogger.php#L56-L58

Added lines #L56 - L58 were not covered by tests
}

/**
* @param string $level
* @param \Throwable|array|string $message
Expand Down

0 comments on commit 312d30f

Please sign in to comment.