protected override void HandleNodeMessageFragment(LogMessageFragmentForNode logMessage) { if (UseTestCoordinator) { var nodeMessage = new MultiNodeLogMessageFragment(logMessage.When.Ticks, logMessage.Message, logMessage.NodeIndex, logMessage.NodeRole); TestCoordinatorActorRef.Tell(nodeMessage); } }
protected override void HandleNodeMessageFragment(LogMessageFragmentForNode logMessage) { if (UseTestCoordinator) { var nodeMessage = new MultiNodeLogMessageFragment(logMessage.When.Ticks, logMessage.Message, logMessage.NodeIndex); TestCoordinatorActorRef.Tell(nodeMessage); } }
public static bool TryParseLogMessage(string messageStr, out LogMessageFragmentForNode logMessage) { var matchLog = NodeLogFragmentRegex.Match(messageStr); if (!matchLog.Success) { logMessage = null; return(false); } var message = matchLog.Groups["message"].Value; var nodeIndex = Int32.Parse(matchLog.Groups["node"].Value); logMessage = new LogMessageFragmentForNode(nodeIndex, message, DateTime.UtcNow); return(true); }
private void WriteNodeMessage(LogMessageFragmentForNode nodeMessage) { Console.WriteLine(nodeMessage.ToString()); }
protected override void HandleNodeMessageFragment(LogMessageFragmentForNode logMessage) { WriteNodeMessage(logMessage); base.HandleNodeMessageFragment(logMessage); }
public static bool TryParseLogMessage(string messageStr, out LogMessageFragmentForNode logMessage) { var matchLog = NodeLogFragmentRegex.Match(messageStr); if (!matchLog.Success) { logMessage = null; return false; } var message = matchLog.Groups["message"].Value; var nodeIndex = Int32.Parse(matchLog.Groups["node"].Value); logMessage = new LogMessageFragmentForNode(nodeIndex, message, DateTime.UtcNow); return true; }
protected override void HandleNodeMessageFragment(LogMessageFragmentForNode logMessage) { _teamCityTestWriter?.WriteStdOutput(logMessage.Message); base.HandleNodeMessageFragment(logMessage); }
/// <summary> /// Used for truncated messages (happens when there's a line break during standard I/O redirection from child nodes) /// </summary> protected abstract void HandleNodeMessageFragment(LogMessageFragmentForNode logMessageFragment);