diff --git a/source/RINGS/Common/ChatLogger.cs b/source/RINGS/Common/ChatLogger.cs index d0f458a..e4a7067 100644 --- a/source/RINGS/Common/ChatLogger.cs +++ b/source/RINGS/Common/ChatLogger.cs @@ -9,6 +9,12 @@ public static class ChatLogger { private static readonly Lazy LazyLogger = new Lazy(() => LogManager.GetLogger("RINGSChatLogger")); + public static void WriteRaw( + string raw) + { + LazyLogger.Value.Trace(raw); + } + public static void Write( string channel, string speaker, diff --git a/source/RINGS/Controllers/SharlayanController.cs b/source/RINGS/Controllers/SharlayanController.cs index 88839fe..c04c90b 100644 --- a/source/RINGS/Controllers/SharlayanController.cs +++ b/source/RINGS/Controllers/SharlayanController.cs @@ -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(() =>