Skip to content

Commit

Permalink
raw ログを出力するようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
anoyetta committed Apr 14, 2020
1 parent 38dada6 commit 04683c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions source/RINGS/Common/ChatLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ public static class ChatLogger
{
private static readonly Lazy<Logger> LazyLogger = new Lazy<Logger>(() => LogManager.GetLogger("RINGSChatLogger"));

public static void WriteRaw(
string raw)
{
LazyLogger.Value.Trace(raw);
}

public static void Write(
string channel,
string speaker,
Expand Down
6 changes: 5 additions & 1 deletion source/RINGS/Controllers/SharlayanController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,11 @@ private void SubscribeChatLog()
if (isExistLogs)
{
var models = targetLogs
.Select(x => ChatLogModel.FromXIVLog(x, this.currentPlayerNames))
.Select(x =>
{
ChatLogger.WriteRaw(x.Raw);
return ChatLogModel.FromXIVLog(x, this.currentPlayerNames);
})
.ToArray();

WPFHelper.Dispatcher.Invoke(() =>
Expand Down

0 comments on commit 04683c2

Please sign in to comment.