g3log

Asynchronous, crash-safe logger library for C++ applications

brewmacoslinux
Try with needOr install directly
Source

About

Asynchronous, 'crash safe', logger that is easy to use

Commands

g3log

Examples

Include g3log in a C++ project for basic logging$ g3log is a library; use it in C++ code: #include <g3log/g3log.hpp>
Initialize g3log logger with file output in your application$ auto worker = g3log::LogWorker::createLogWorker(); auto handle = worker->addDefaultLogger("MyApp", "./log");
Log messages at different severity levels$ LOG(INFO) << "Info message"; LOG(WARNING) << "Warning"; LOG(FATAL) << "Fatal error";