【修改】autoloader 模板上传
This commit is contained in:
parent
60bb545b1d
commit
eb3c5bf67f
@ -121,6 +121,10 @@
|
|||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\..\MES_S_DLL\iMESConst.dll</HintPath>
|
<HintPath>..\..\MES_S_DLL\iMESConst.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="iMESLog, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\MES_S_DLL\iMESLog.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="Microsoft.VisualBasic" />
|
<Reference Include="Microsoft.VisualBasic" />
|
||||||
<Reference Include="ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
|
<Reference Include="ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
@ -143,7 +143,7 @@ namespace AutoLoaderLib_C
|
|||||||
string strComponentNo = string.Empty;
|
string strComponentNo = string.Empty;
|
||||||
bool blnMoveFile = true;
|
bool blnMoveFile = true;
|
||||||
string strSQL = string.Empty;
|
string strSQL = string.Empty;
|
||||||
|
modWIN.WriteLog("开始读档:" + Path.GetFileName(FileName), iMESLog.iMESLogLevel.Trace);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// //取出colParameter傳入參數
|
// //取出colParameter傳入參數
|
||||||
|
@ -6,6 +6,7 @@ using System.Runtime.InteropServices;
|
|||||||
using Microsoft.VisualBasic;
|
using Microsoft.VisualBasic;
|
||||||
using Microsoft.VisualBasic.CompilerServices;
|
using Microsoft.VisualBasic.CompilerServices;
|
||||||
using static iMESCore.Base.iMESConst;
|
using static iMESCore.Base.iMESConst;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace AutoLoaderLib_C
|
namespace AutoLoaderLib_C
|
||||||
{
|
{
|
||||||
@ -487,6 +488,15 @@ namespace AutoLoaderLib_C
|
|||||||
|
|
||||||
return GetExceptionStackRet;
|
return GetExceptionStackRet;
|
||||||
}
|
}
|
||||||
|
public static void WriteLog(string msg, iMESLog.iMESLogLevel level, Exception e = null)
|
||||||
|
{
|
||||||
|
string MethodInfo = "";
|
||||||
|
var ss = new StackTrace(true);
|
||||||
|
var mb = ss.GetFrame(1).GetMethod();
|
||||||
|
MethodInfo = mb.DeclaringType.Namespace + "." + mb.DeclaringType.Name + "." + mb.Name;
|
||||||
|
|
||||||
|
var log = new iMESLog.MESLog(mb.DeclaringType.Namespace);
|
||||||
|
log.WriteLog(msg, level, e, MethodInfo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user