[Lldb-commits] [lldb] [lldb] Introduce an always-on system log category/channel (PR #108495)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 26 23:55:12 PDT 2024


================
@@ -272,6 +272,12 @@ class Log final {
   void VAFormatf(llvm::StringRef file, llvm::StringRef function,
                  const char *format, va_list args);
 
+  void Enable(const std::shared_ptr<LogHandler> &handler_sp,
+              uint32_t options = 0,
+              MaskType flags = std::numeric_limits<Log::MaskType>::max());
----------------
labath wrote:

The log channels have a concept of a default set of categories, so if we're going to have a default here, it better be it. That could be achieved by making this an `optional<MaskType>` (and then you can also simplify the code in `EnableLogChannel`).

https://github.com/llvm/llvm-project/pull/108495


More information about the lldb-commits mailing list