diff --git a/index.php b/index.php index 6c3657cc..f4210aed 100644 --- a/index.php +++ b/index.php @@ -59,7 +59,7 @@ } $logger = new Logger( - dirname($conf->get('resource.log')), + is_writable($conf->get('resource.log')) ? dirname($conf->get('resource.log')) : 'php://temp', !$conf->get('dev.debug') ? LogLevel::INFO : LogLevel::DEBUG, ['filename' => basename($conf->get('resource.log'))] );