@@ -126,7 +126,7 @@ class Log {
126126 static void diagnose (const SwiftDiagnostic& source,
127127 const std::chrono::system_clock::time_point& time,
128128 std::string_view message) {
129- instance ().diagnostics . write (source, time, message);
129+ instance ().diagnoseImpl (source, time, message);
130130 }
131131
132132 private:
@@ -144,6 +144,9 @@ class Log {
144144
145145 void configure ();
146146 void flushImpl ();
147+ void diagnoseImpl (const SwiftDiagnostic& source,
148+ const std::chrono::system_clock::time_point& time,
149+ std::string_view message);
147150
148151 LoggerConfiguration getLoggerConfigurationImpl (std::string_view name);
149152
@@ -183,7 +186,7 @@ class Log {
183186 FilteredOutput<std::ofstream> binary{Level::no_logs};
184187 FilteredOutput<binlog::TextOutputStream> text{Level::info, textFile, format};
185188 FilteredOutput<binlog::TextOutputStream> console{Level::warning, std::cerr, format};
186- SwiftDiagnosticsDumper diagnostics{};
189+ std::ofstream diagnostics{};
187190 LevelRules sourceRules;
188191 std::vector<std::string> collectLevelRulesAndReturnProblems (const char * envVar);
189192};
0 commit comments