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

Function LogFunc

lib/mdflib/mdflib_test/src/testtimestamp.cpp:40–48  ·  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

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

Callers

nothing calls this directly

Calls 1

AddLogMessageMethod · 0.45

Tested by

no test coverage detected