MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / LogFunc

Function LogFunc

lib/mdflib/mdflib_test/src/testflexraylogger.cpp:38–46  ·  view source on GitHub ↗

* Function that connect the MDF library to the UTIL library log functionality. * @param location Source file and line location * @param severity Severity code * @param text Log text */

Source from the content-addressed store, hash-verified

36 * @param text Log text
37 */
38void LogFunc(const MdfLocation& location, mdf::MdfLogSeverity severity,
39 const std::string& text) {
40 const auto &log_config = LogConfig::Instance();
41 LogMessage message;
42 message.message = text;
43 message.severity = static_cast<LogSeverity>(severity);
44
45 log_config.AddLogMessage(message);
46}
47/**
48 * Function that stops logging of MDF logs
49 * @param location Source file and line location

Callers

nothing calls this directly

Calls 1

AddLogMessageMethod · 0.45

Tested by

no test coverage detected