We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21205ad commit cddf0b7Copy full SHA for cddf0b7
src/Logger/Logger.php
@@ -21,7 +21,7 @@ public function __construct(string $filePath)
21
22
public function log($level, $message, array $context = []): void
23
{
24
- if (!file_exists($this->filePath)) {
+ if (!file_exists(dirname($this->filePath))) {
25
if (!mkdir($concurrentDirectory = dirname($this->filePath), 0777, true) && !is_dir($concurrentDirectory)) {
26
throw new \RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory));
27
}
0 commit comments