diff --git a/typo3/sysext/core/Classes/Log/Writer/FileWriter.php b/typo3/sysext/core/Classes/Log/Writer/FileWriter.php
index f54532d98ff4d4f5968d12770a2614ea36d9ebc8..7e71ff6efe5905c83ddefd92cf575a003753126b 100644
--- a/typo3/sysext/core/Classes/Log/Writer/FileWriter.php
+++ b/typo3/sysext/core/Classes/Log/Writer/FileWriter.php
@@ -219,7 +219,7 @@ class FileWriter extends AbstractWriter
 
         // skip mkdir if logFile refers to any scheme but vfs://, file:// or empty
         $scheme = parse_url($this->logFile, PHP_URL_SCHEME);
-        if ($scheme === null || $scheme === 'file' || $scheme === 'vfs') {
+        if ($scheme === null || $scheme === 'file' || $scheme === 'vfs' || GeneralUtility::isAbsPath($this->logFile)) {
             // remove file:/ before creating the directory
             $logFileDirectory = PathUtility::dirname(preg_replace('#^file:/#', '', $this->logFile));
             if (!@is_dir($logFileDirectory)) {