private void sshLogToFile( String logStr )
	{
		if ( !sshLog.exists() )
		{
			// 创建文件
			try
			{
				if ( !sshLog.createNewFile() )
				{
					RTTestLog.logToConsole( "log文件创建失败", LogCollector.ERROR );
					isTestReady = false;
					return;
				}
				RTTestLog.logToConsole( "log文件创建成功。\n", LogCollector.INFO );
			}
			catch ( IOException e )
			{
				RTTestLog.logToConsole( "文件IO异常。\n", LogCollector.ERROR );
				isTestReady = false;
				e.printStackTrace();
			}
		}
		try
		{
			if ( fos == null )
				fos = new FileOutputStream( sshLog );
			else
				fos = new FileOutputStream( sshLog, true );
			RTTestLog
					.logToConsole( "log写入：" + logStr + "\n", LogCollector.INFO );
			byte[] stb = logStr.getBytes();
			fos.write( stb );
		}
		catch ( FileNotFoundException e )
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		catch ( IOException e )
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		finally
		{
			try
			{
				fos.close();
			}
			catch ( IOException e )
			{
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		// 将logStr追加到sshLog中
	}