- 시간에 따른 감소폭 추가
- 정정주문 수정 - crash 수정
This commit is contained in:
4
Util.cs
4
Util.cs
@@ -25,6 +25,7 @@ namespace AutoSellerNS
|
||||
|
||||
delegate void InsertLogDelegate(RichTextBox LogBox, LOG_TYPE enType, string strLog);
|
||||
static InsertLogDelegate m_InsertLogDelegate = new InsertLogDelegate(InsertLog);
|
||||
static object m_LogLock = new object();
|
||||
|
||||
public static void SetLogView(RichTextBox logBox)
|
||||
{
|
||||
@@ -95,7 +96,8 @@ namespace AutoSellerNS
|
||||
string strTime = DateTime.Now.ToString("[HH:mm:ss:fff] ");
|
||||
string strMessage = strTime+strLogLevel+strLog;
|
||||
|
||||
File.AppendAllText(m_strLogFile, strMessage+Environment.NewLine, new UTF8Encoding(true));
|
||||
lock(m_LogLock)
|
||||
File.AppendAllText(m_strLogFile, strMessage+Environment.NewLine, new UTF8Encoding(true));
|
||||
if(m_LogBox != null)
|
||||
InsertLog(m_LogBox, enType, strMessage+Environment.NewLine);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user