2018-05-29 08:58:07 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
2019-01-21 19:48:49 +00:00
|
|
|
* This source code is licensed as defined on the LICENSE file found in the
|
|
|
|
* root directory of this source tree.
|
2018-05-29 08:58:07 +00:00
|
|
|
*/
|
|
|
|
|
2018-09-21 18:54:31 +00:00
|
|
|
#include <osquery/config/config.h>
|
2018-05-29 08:58:07 +00:00
|
|
|
|
|
|
|
namespace osquery {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Parser plugin for logger configurations.
|
|
|
|
*/
|
|
|
|
class LoggerConfigParserPlugin : public ConfigParserPlugin {
|
|
|
|
public:
|
|
|
|
std::vector<std::string> keys() const override {
|
|
|
|
return {kLoggerKey};
|
|
|
|
}
|
|
|
|
|
|
|
|
Status update(const std::string& source, const ParserConfig& config) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
static const std::string kLoggerKey;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace osquery
|