| 89 | } |
| 90 | |
| 91 | void LogToConsole::LogLocation(const MdfLocation& location) { |
| 92 | if (!location.file.empty() && !location.function.empty()) { |
| 93 | try { |
| 94 | path fullname(location.file); |
| 95 | std::cout << "\t[" << fullname.filename().string() |
| 96 | << "::" << location.function |
| 97 | << ":" << location.line << "] " ; |
| 98 | } catch (const std::exception&) { |
| 99 | |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | |
| 105 | } // namespace mdf |