if (!file_exists(dirname($file))) {
@mkdir(dirname($file),0700,true); // this might fail if it does not have correct permissions..
+ clearstatcache();
if (!file_exists(dirname($file))) {
//print_r($this);
die("Events:: writeEventLog: could not create $file - permissons are not correct\n"); // fatal, otherwise we loop!?