P4C
The P4 Compiler
Loading...
Searching...
No Matches
modules/testgen/lib/logging.h
1#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_LIB_LOGGING_H_
2#define BACKENDS_P4TOOLS_MODULES_TESTGEN_LIB_LOGGING_H_
3
4#include <string>
5#include <utility>
6
7#include "backends/p4tools/common/lib/logging.h" // IWYU pragma: export
8#include "backends/p4tools/common/lib/util.h"
9
10namespace P4::P4Tools::P4Testgen {
11
14template <typename... Arguments>
15void printTraces(const std::string &fmt, Arguments &&...args) {
16 printFeature("test_traces", 4, fmt, std::forward<Arguments>(args)...);
17}
18
20void enableTraceLogging();
21
23void enableStepLogging();
24
26void enableCoverageLogging();
27
28} // namespace P4::P4Tools::P4Testgen
29
30#endif /* BACKENDS_P4TOOLS_MODULES_TESTGEN_LIB_LOGGING_H_ */
void printFeature(const std::string &label, int level, const std::string &fmt, Arguments &&...args)
Definition common/lib/logging.h:28