plog

C++ logging library for adding debug and error logs to applications

brewmacoslinux
Try with needOr install directly
Source

About

Portable, simple and extensible C++ logging library

Examples

add logging to C++ project$ #include <plog/Log.h> int main() { PLOG_INFO << "Hello"; }
write logs to file instead of console$ plog::init(plog::debug, "app.log");
set different log levels for debugging$ PLOG_DEBUG << "Debug message"; PLOG_ERROR << "Error occurred";
filter logs by severity level$ plog::init(plog::warning); // only warnings and errors
format and capture logs in custom way$ class MyFormatter : public plog::CsvFormatter {}; plog::init<MyFormatter>(plog::debug, "app.log");