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