From 15d877e2cb04d9f30211ba2aef5c2bc92ef591e4 Mon Sep 17 00:00:00 2001 From: lhiven Date: Mon, 24 Feb 2025 14:08:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BF=BB=E8=AF=91=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=AD=E6=8F=8F=E8=BF=B0=E5=88=97=E5=8C=85=E5=90=AB?= =?UTF-8?q?=E9=80=97=E5=8F=B7=E6=97=B6=EF=BC=8C=E5=AF=BC=E8=87=B4=E7=94=9F?= =?UTF-8?q?=E6=88=90=E7=9A=84CSV=E6=96=87=E4=BB=B6=E5=88=86=E5=88=97?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.DeweyTester/Commom/DevLog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rs.DeweyTester/Commom/DevLog.cs b/Rs.DeweyTester/Commom/DevLog.cs index 7dd8f3f..ef1bc87 100644 --- a/Rs.DeweyTester/Commom/DevLog.cs +++ b/Rs.DeweyTester/Commom/DevLog.cs @@ -34,7 +34,7 @@ namespace Rs.MotionPlat.Commom File.AppendAllText(filename, csvTitle); } string v = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString().Replace(".","_"); - string content = $"{v},{GlobalVar.SiteID},{GlobalVar.ProjectID},{GlobalVar.MachineID},{DateTime.Now.ToString("dd/MM/yyyy")},{DateTime.Now.ToString("HH:mm:ss")},{GlobalVar.LotName.Replace("\r\n", "")},OP,{keyword},{errorcode},{errormsg},{message}\r\n"; + string content = $"{v},{GlobalVar.SiteID},{GlobalVar.ProjectID},{GlobalVar.MachineID},{DateTime.Now.ToString("dd/MM/yyyy")},{DateTime.Now.ToString("HH:mm:ss")},{GlobalVar.LotName.Replace("\r\n", "")},OP,{keyword},{errorcode},\"{errormsg}\",{message}\r\n"; File.AppendAllText(filename, content); } catch (Exception ex)