osquery-1/osquery/config/parsers/logger.h

31 lines
802 B
C++

/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the Apache 2.0 license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
* You may select, at your option, one of the above-listed licenses.
*/
#include <osquery/config.h>
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