mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
19 lines
348 B
C++
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>());
|
|
}
|