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