Skip to content

Commit

Permalink
Update logger
Browse files Browse the repository at this point in the history
  • Loading branch information
omatztw committed Feb 22, 2021
1 parent 8a7fde3 commit 9188046
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -334,3 +334,5 @@ ASALocalRun/

# Local History for Visual Studio
.localhistory/

*/lib/*.exe
13 changes: 11 additions & 2 deletions Plugin_TW/Plugin_TW.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ public void End()

#region ■メソッド・イベント処理

/// <summary>
/// デバッグログを追加。Debugでビルドした場合に表示されるログ。
/// </summary>
/// <param name="message"></param>
private void LogError(string message)
{
Log.AddDebug(Base.CallAsmName, message, LogType.Error);
}

/// <summary>
/// チャットログがXML形式になっていないので、XML形式に変換する
/// </summary>
Expand Down Expand Up @@ -157,7 +166,7 @@ private void Timer_Event(object obj)
}
catch (Exception e)
{
Console.WriteLine(e.Message);
LogError(e.Message);
}

}
Expand Down Expand Up @@ -345,7 +354,7 @@ private List<string> GetLinesFromLastLine(string filename)
}
catch (Exception e)
{
Console.WriteLine(e.Message);
LogError(e.Message);
}
return lines;

Expand Down

0 comments on commit 9188046

Please sign in to comment.