Index: trunk/src/inc/LogHandler.class.php
===================================================================
--- trunk/src/inc/LogHandler.class.php	(revision 7748)
+++ trunk/src/inc/LogHandler.class.php	(revision 7749)
@@ -94,5 +94,6 @@
 				//Check if the file can be opened
 				  if (!$handle = fopen($filename, 'w')) {
-					 echo "Cannot open file ($filename)";
+				  	define('LOG_LEVEL_WRITE', LOG_LEVEL_NONE);
+					 trigger_log(SYSLOG_EMERG, 'Cannot open file "' . $filename . '"', __FILE__, __LINE__);
 					 exit;
 				}
@@ -100,5 +101,6 @@
 				// Write $errorString to file.
 				if (fwrite($handle, $errorString) === FALSE) {
-					echo "Cannot write to file ($filename)";
+					define('LOG_LEVEL_WRITE', LOG_LEVEL_NONE);
+					trigger_log(SYSLOG_EMERG, 'Cannot write to "' . $filename . '"', __FILE__, __LINE__);
 					exit;
 				}
