Chebyshev
Unit testing for scientific software
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1
5
6#ifndef CHEBYSHEV_LOG_H
7#define CHEBYSHEV_LOG_H
8
9
10namespace chebyshev {
11
13 namespace output {
14
16 enum class LogLevel {
17 DEBUG,
18 INFO,
19 WARNING,
20 ERROR
21 };
22
23
26 switch (level) {
27 case LogLevel::DEBUG: return "DEBUG";
28 case LogLevel::INFO: return "INFO";
29 case LogLevel::WARNING: return "WARNING";
30 case LogLevel::ERROR: return "ERROR";
31 default: return "UNKNOWN";
32 }
33 }
34 }
35}
36
37#endif
LogLevel
Log levels for the output module.
Definition log.h:16
std::string loglevel_to_string(LogLevel level)
Convert a log level to a string for printing.
Definition log.h:25
General namespace of the framework.
Definition benchmark.h:22
constexpr FloatType get_nan()
Get a quiet NaN of the specified floating point type.
Definition common.h:65