osquery-1/osquery/config/plugins/glog.cpp
2014-12-03 15:14:02 -08:00

21 lines
406 B
C++

// Copyright 2004-present Facebook. All Rights Reserved.
#include <glog/logging.h>
#include <osquery/logger/plugin.h>
namespace osquery {
class GlogPlugin : public LoggerPlugin {
public:
Status logString(const std::string& message) {
LOG(INFO) << message;
return Status(0, "OK");
}
virtual ~GlogPlugin() {}
};
REGISTER_LOGGER_PLUGIN("glog", std::make_shared<osquery::GlogPlugin>());
}