Skip to content

Commit

Permalink
feat(backend): add download logs action (#275)
Browse files Browse the repository at this point in the history
feat: add download logs action

INT-667

Needs myparcelnl/pdk#288
Needs myparcelnl/js-pdk#221
  • Loading branch information
EdieLemoine authored Nov 13, 2024
1 parent 78b3657 commit 7bb1349
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
{
return array_map(function (string $level): string {
return $this->getLogFilename($level);
}, self::LOG_LEVELS);
}

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

0 comments on commit 7bb1349

Please sign in to comment.