in TeamCity.ServiceMessages/Write/Special/TeamCityServiceMessages.cs [56:71]
public ITeamCityWriter CreateWriter(Action<string> destination, bool addFlowIdsOnTopLevelMessages = true)
{
if (destination == null) throw new ArgumentNullException(nameof(destination));
var rootServiceMessageFlowId = addFlowIdsOnTopLevelMessages ? FlowIdGenerator.NewFlowId() : null;
var processor = new FlowAwareServiceMessageWriter(
rootServiceMessageFlowId,
new ServiceMessagesWriter(Formatter, destination),
FlowIdGenerator,
Updaters.ToList());
return new TeamCityWriterImpl(
processor,
DisposableDelegate.Empty
);
}