[all-commits] [llvm/llvm-project] 6ff49a: [lldb] Introduce the concept of a log handler (NFC)

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Thu Jun 16 13:34:42 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ff49af33d093dd7e0659958185942d0d26a8b90
      https://github.com/llvm/llvm-project/commit/6ff49af33d093dd7e0659958185942d0d26a8b90
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-06-16 (Thu, 16 Jun 2022)

  Changed paths:
    M lldb/include/lldb/Core/Debugger.h
    M lldb/include/lldb/Utility/Log.h
    R lldb/include/lldb/Utility/StreamCallback.h
    M lldb/source/Core/Debugger.cpp
    M lldb/source/Utility/CMakeLists.txt
    M lldb/source/Utility/Log.cpp
    R lldb/source/Utility/StreamCallback.cpp
    M lldb/tools/lldb-server/LLDBServerUtilities.cpp
    M lldb/unittests/Core/CMakeLists.txt
    R lldb/unittests/Core/StreamCallbackTest.cpp
    M lldb/unittests/Utility/LogTest.cpp

  Log Message:
  -----------
  [lldb] Introduce the concept of a log handler (NFC)

This patch introduces the concept of a log handlers. Log handlers allow
customizing the way log output is emitted. The StreamCallback class
tried to do something conceptually similar. The benefit of the log
handler interface is that you don't need to conform to llvm's
raw_ostream interface.

Differential revision: https://reviews.llvm.org/D127922




More information about the All-commits mailing list