// type: Const.MSG_TYPE_N,MSG_TYPE_WARN,MSG_TYPE_ERROR private void WriteLog(string msg, int type) { if (taskInstance != null) { if (ModelID != string.Empty) { msg = ModelID + ":" + msg; } taskServer.SendLogMessage(taskInstance.TaskId, msg, type); } }
public void WriteLog(string msg, int type) { if (taskServer != null) { try { if (ModelID != string.Empty) { msg = ModelID + ":" + msg; } taskServer.SendLogMessage(Taskid, msg, type); } catch (Exception) { } } }