- DartAPI 요청 버그 수정
- 8092 종목명 찾기 수정 - 실패한 종목명 배경색 추가
This commit is contained in:
4
Util.cs
4
Util.cs
@@ -30,6 +30,7 @@ namespace NewsCrawler
|
||||
|
||||
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)
|
||||
{
|
||||
@@ -104,7 +105,8 @@ namespace NewsCrawler
|
||||
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