- 시간에 따른 감소폭 추가

- 정정주문 수정
- crash 수정
This commit is contained in:
2017-03-07 15:40:25 +09:00
parent f4872096c6
commit 592fc7a365
5 changed files with 601 additions and 450 deletions

View File

@@ -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);