public static function getLogDir() { if (is_null(self::$LogDir)) { self::$LogDir = dirname(self::getErrorLogName()); } return self::$LogDir; }