osquery-1/osquery/config/plugins/glog.cpp
2014-10-02 19:44:45 -07:00

19 lines
348 B
C++

#include "osquery/logger/plugin.h"
#include <glog/logging.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>());
}