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