Asynchronous crash-safe logger library for C++ applications
Asynchronous, 'crash safe', logger that is easy to use
$ g3log is a library, not a CLI tool. Include it in your CMakeLists.txt: find_package(g3log CONFIG REQUIRED) and link target_link_libraries(myapp g3log)$ LOG(INFO) << "Application started"; LOG(WARNING) << "Potential issue"; LOG(FATAL) << "Critical error";$ auto worker = g3::LogWorker::createLogWorker(); auto handle = worker->addDefaultFileLogger("myapp", "./logs");$ auto sinkHandle = logWorker->addSink(std::make_unique<CustomSink>(), &CustomSink::receiveMessage);$ g3::installCrashHandler(); // Ensures logs are flushed before crash dump on Windows/Linux