* 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 */
| 47 | * @param text Log text |
| 48 | */ |
| 49 | void LogFunc(const MdfLocation& location, mdf::MdfLogSeverity severity, |
| 50 | const std::string& text) { |
| 51 | const auto &log_config = LogConfig::Instance(); |
| 52 | LogMessage message; |
| 53 | message.message = text; |
| 54 | message.severity = static_cast<LogSeverity>(severity); |
| 55 | |
| 56 | log_config.AddLogMessage(message); |
| 57 | } |
| 58 | /** |
| 59 | * Function that stops logging of MDF logs |
| 60 | * @param location Source file and line location |
nothing calls this directly
no test coverage detected