33 os <<
"{\n categories: {\n";
34 std::vector<std::string> names;
36 for (
const auto&
cc : catConfigs) {
37 names.push_back(
cc.first);
39 std::sort(names.begin(), names.end());
40 for (
const auto&
name : names) {
41 os <<
" " <<
name <<
"=" << catConfigs.at(
name) <<
"\n";
45 os <<
" }\n handlers: {\n";
48 for (
const auto&
cc : handlerConfigs) {
49 names.push_back(
cc.first);
51 std::sort(names.begin(), names.end());
52 for (
const auto&
name : names) {
53 os <<
" " <<
name <<
"=" << handlerConfigs.at(
name) <<
"\n";
78 for (
const auto& opt : config.
options) {
85 os << opt.first <<
"=" << opt.second;
91 *os <<
"Handler(" << handler->getConfig() <<
")";
const CategoryConfigMap & getCategoryConfigs() const
Optional< std::vector< std::string > > handlers
void PrintTo(const dynamic &dyn, std::ostream *os)
The non test part of the code is expected to have failures gtest_output_test_ cc
—— Concurrent Priority Queue Implementation ——
Optional< std::string > type
string logLevelToString(LogLevel level)
void handler(int, siginfo_t *, void *)
FOLLY_CPP14_CONSTEXPR bool hasValue() const noexcept
const HandlerConfigMap & getHandlerConfigs() const
void join(const Delim &delimiter, Iterator begin, Iterator end, String &output)
FOLLY_CPP14_CONSTEXPR const Value & value() const &
constexpr detail::First first
std::ostream & operator<<(std::ostream &out, dynamic const &d)