public static void Error(string msg) { LogMsgObj lmo = new LogMsgObj(); lmo.LogType = LogMsgObj.LogMsgType.Error; lmo.User = CurrentPrjInfo.CurrentLoginUserID; lmo.Msg = PMS.Libraries.ToolControls.PMSPublicInfo.PublicFunctionClass.CodeRunningPosition2() + msg; lmo.Dt = DateTime.Now; PMSFileClass.AddToTraceFile(msg); LogMsg(lmo); }
public static void Trace(string msg) { string msgInfo = string.Format("{0:yyyy-MM-dd hh:mm:ss.ff};{1};{2}", DateTime.Now, CurrentPrjInfo.CurrentLoginUserID, msg); PMSFileClass.AddToTextFile(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Trace"), msgInfo); }