summaryrefslogtreecommitdiff
path: root/framework/Log/TLogManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Log/TLogManager.php')
-rw-r--r--framework/Log/TLogManager.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/Log/TLogManager.php b/framework/Log/TLogManager.php
index 8ab170ed..dd926bc7 100644
--- a/framework/Log/TLogManager.php
+++ b/framework/Log/TLogManager.php
@@ -110,6 +110,10 @@ class TEzcLoggerUnixFileWriterFactory
$path = $xml->getAttribute('directory');
$dir = Prado::getPathOfNamespace($path);
+ if(!is_dir($dir))
+ throw new TException("missing_logging_directory $dir");
+ if(!is_writable($dir))
+ throw new TException("unable_to_writer_to $dir");
$file = $xml->getAttribute('filename');
if(empty($file)) $file = 'prado.log';
return new ezcLogWriterUnixFile($dir, $file);