We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09506be commit 2db66e8Copy full SHA for 2db66e8
lldb/source/Utility/Logging.cpp
@@ -59,12 +59,19 @@ static constexpr Log::Category g_swift_categories[] = {
59
60
static Log::Channel g_swift_log_channel(g_swift_categories, LIBLLDB_SWIFT_LOG_HEALTH);
61
62
+static std::string g_swift_log_buffer;
63
+
64
#endif
65
66
void lldb_private::InitializeLldbChannel() {
67
Log::Register("lldb", g_log_channel);
68
#ifdef LLDB_ENABLE_SWIFT
69
Log::Register("swift", g_swift_log_channel);
70
71
+ llvm::raw_null_ostream error_stream;
72
+ Log::EnableLogChannel(
73
+ std::make_shared<llvm::raw_string_ostream>(g_swift_log_buffer),
74
+ LLDB_LOG_OPTION_THREADSAFE, "swift", {"health"}, error_stream);
75
76
}
77
0 commit comments