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