/cpp-logging-playground

Sample code exploring various C++ logging frameworks

Primary LanguageC++BSD 2-Clause "Simplified" LicenseBSD-2-Clause

cpp-logging-playground

This repo includes sample code using various C++ logging frameworks.

Requirements:

  • Filtering by various logging levels (e.g. info, warn, err, debug, fatal)
  • Support logging to stdout/stderr (for use in containers)
  • Support logging to file with rotation support (for use outside of containers)
  • Thread-safe
  • Type-safe
  • Customizable logging formats
  • Extensible for user-defined types
  • Async support

spdlog/fmt

Dependencies:

boost::log

Dependencies:

  • boost - drags in multiple boost libraries (log, log_setup, thread, system, atomic, chrono, date_time, filesystem, regex)