#include <mutex>
-#include <osquery/logger.h>
+#include <vist/logger.hpp>
namespace {
std::mutex mutex;
if (table.empty())
return Status(1, "Wrong table name");
- LOG(INFO) << "Add NotifyCallback to:" << table;
+ INFO(VIST) << "Add NotifyCallback to:" << table;
{
std::lock_guard<std::mutex> lock(mutex);
this->callbacks.insert(std::make_pair(table, callback));
if (iter == this->callbacks.end())
return Status(1, "Registered callback not found");
- LOG(INFO) << "Emit notification about:" << table;
+ INFO(VIST) << "Emit notification about:" << table;
{
std::lock_guard<std::mutex> lock(mutex);
while (iter != this->callbacks.end()) {