Category : aio

I am using libaio library to write to a file on disk using c++. I am using g3log for logging messages and have initialized the logger like this : auto log_worker = g3::LogWorker::createLogWorker(); auto sink_handle = log_worker->addSink(std::make_unique<CustomSink>(), &CustomSink::forwardLogToStdout); g3::initializeLogging(log_worker.get()); I have created a custom class like this: class CustomSink{ public: void forwardLogToStdout(g3::LogMessageMover logEntry) { std::cout<<logEntry.get().message()<<"n"; ..

Read more