TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25120 18
GoodLog: a small C++17 wrapper around Boost.Log for colored output, rotation and hex dumps

Hi r/cpp,



I built GoodLog, a small C++17 wrapper around Boost.Log.



The goal is not to replace general-purpose logging libraries like spdlog. I wanted a reusable layer for C++ projects that already depend on Boost, so the common Boost.Log setup does not have to be repeated across modules.



It currently supports:



\- colored console output

\- automatic file:line source location

\- rotating log files

\- separate severity filters for console and file sinks

\- optional channel filtering

\- hex dump helpers for binary buffers

\- CMake demo and GoogleTest entry points



GitHub:

https://github.com/SoleyRan/Log



The project is still early, and I would especially appreciate feedback on the macro API, CMake integration, and whether the channel logging interface should be simplified.



https://redd.it/1t2pmyu
@r_cpp
GitHub GitHub - SoleyRan/Log: A lightweight C++17 logging wrapper around Boost.Log with colored output, rotating files, severity filters… A lightweight C++17 logging wrapper around Boost.Log with colored output, rotating files, severity filters, and hex dump helpers. - SoleyRan/Log
More from @r_cpp
  1. Oct 4, 2026About alignment, struct layout and the cache... https://meetingcpp.com/blog/items/About-al…
  2. Oct 4, 20260x40: Intro, NB and C++ news, the 10 year anniversary , and the Quiz https://youtu.be/cEjc…
  3. Oct 4, 2026Packing Binary Is Fun, Actually https://hereticpleb.vercel.app/blog/packing-binary-is-fun-…
  4. Oct 3, 2026I've tried "Token Sequence Injection & Modern Macros" and here are my thoughts We had this…
  5. Oct 3, 2026Compile Your First C++26 Program with GCC 16.2 https://techfortalk.co.uk/2026/05/04/compil…
  6. Oct 3, 2026Delegating Constructors Delegating constructors allow the default constructor of a class t…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →