[Lldb-commits] [lldb] [lldb] Log to system log instead of stderr from Host::SystemLog (PR #83366)
Jordan Rupprecht via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 28 20:06:03 PST 2024
================
@@ -89,8 +89,17 @@ using namespace lldb;
using namespace lldb_private;
#if !defined(__APPLE__)
+#if !defined(_WIN32)
+#include <syslog.h>
+void Host::SystemLog(llvm::StringRef message) {
+ openlog("lldb", LOG_CONS | LOG_PID | LOG_NDELAY, LOG_USER);
+ syslog(LOG_INFO, "%s", message.data());
+ closelog();
----------------
rupprecht wrote:
Also, cc @oontvoo who is looking at this stuff more closely now
https://github.com/llvm/llvm-project/pull/83366
More information about the lldb-commits
mailing list