diff --git a/src/WP/WPCapture.php b/src/WP/WPCapture.php
index f0c17895b6b0b87c209f299db9028ff31e314731..ddc915533277fef60e9de05af106efa70abd591b 100644
--- a/src/WP/WPCapture.php
+++ b/src/WP/WPCapture.php
@@ -87,7 +87,11 @@ class WPCapture {
 			}
 		}
 
-		return true;
+        if (!is_writable($log_file)) {
+            $this->add_notice_for_file($log_file);
+            return false;
+        }
+        return true;
 	}
 
 	/**
diff --git a/src/WPDeskLoggerFactory.php b/src/WPDeskLoggerFactory.php
index d57346532792028bde71cb7cc1783d8e9d6ecfc2..6b39b9c1ea0089cd2409a2237b263cd59f3a2d19 100644
--- a/src/WPDeskLoggerFactory.php
+++ b/src/WPDeskLoggerFactory.php
@@ -114,7 +114,9 @@ class WPDeskLoggerFactory extends BasicLoggerFactory
      */
     private function appendMainLog($logger) {
         $wpCapture = $this->captureWPLog();
-        $this->appendFileLog($logger, $wpCapture->get_log_file());
+        if (is_writable($wpCapture->get_log_file())) {
+            $this->appendFileLog($logger, $wpCapture->get_log_file());
+        }
     }
 
     /**