26 #include "../Framework.h"
27 #include "../printers/Printers.h"
30 #endif // !defined(_WIN64)
59 std::set<InstrumentsDescription> allowed_instruments
67 allowed_instruments.insert(
type);
70 std::set<LogFormat> supported_log_formats
77 std::set<LogLevel> supported_log_levels
95 log_format->
set_help(
"Output format for measurements and failures (affects only log-file)");
96 log_file->
set_help(
"Write output to file instead of to the console (affected by log-format)");
106 std::vector<std::unique_ptr<Printer>> printers;
110 auto pretty_printer = std::make_unique<PrettyPrinter>();
112 printers.push_back(std::move(pretty_printer));
115 std::unique_ptr<Printer> printer;
119 printer = std::make_unique<JSONPrinter>();
125 auto pretty_printer = std::make_unique<PrettyPrinter>();
128 printer = std::move(pretty_printer);
135 if(printer !=
nullptr)
141 if(printer !=
nullptr)
143 printers.push_back(std::move(printer));
148 printers.push_back(std::make_unique<JSONPrinter>());
150 printers.back()->set_stream(*
log_streams.back().get());
155 printers.push_back(std::make_unique<PrettyPrinter>());
157 printers.back()->set_stream(*
log_streams.back().get());