LLVM OpenMP 22.0.0git
|
Classes | |
class | Logger |
Functions | |
const char * | to_string (Level LogLevel) |
Returns a string representation of the given logging level. | |
std::string | getFormatSequence (Level LogLevel=Level::Default) |
Returns the format options as escaped sequence, for the given logging level. | |
std::string | format (const std::string &Message, FormatOption Option) |
Format the given message with the provided option(s) and return it. | |
std::string | format (const std::string &Message, std::set< FormatOption > Options) |
|
strong |
|
strong |
std::string omptest::logging::format | ( | const std::string & | Message, |
FormatOption | Option ) |
Format the given message with the provided option(s) and return it.
Here formatting is only concerning control sequences using <Esc> character which can be obtained using '' (on console), '\033' or '\x1B'.
Definition at line 77 of file Logging.cpp.
References int.
Referenced by omptest::logging::Logger::logEventMismatch(), and omptest::logging::Logger::logEventMismatch().
std::string omptest::logging::format | ( | const std::string & | Message, |
std::set< FormatOption > | Options ) |
Definition at line 84 of file Logging.cpp.
References int.
std::string omptest::logging::getFormatSequence | ( | Level | LogLevel = Level::Default | ) |
Returns the format options as escaped sequence, for the given logging level.
Definition at line 61 of file Logging.cpp.
References AggregatedFormatOptions, and int.
Referenced by omptest::logging::Logger::log(), omptest::logging::Logger::logEventMismatch(), and omptest::logging::Logger::logEventMismatch().
Returns a string representation of the given logging level.
Definition at line 41 of file Logging.cpp.
References Critical, Diagnostic, Error, Info, Silent, and Warning.
Referenced by omptest::logging::Logger::log(), omptest::logging::Logger::logEventMismatch(), and omptest::logging::Logger::logEventMismatch().