#include <nlohmann/json.hpp>
#include <spdlog/spdlog.h>
#include <spdlog/sinks/basic_file_sink.h>
#include <memory>
#include "log_database.h"
#include "../../utils/utils.h"
Go to the source code of this file.
|
| namespace | mb |
| | router.h
|
| |
| namespace | mb::logEntry |
| |
| namespace | mb::LogOrigin |
| | Utility logger functions for each component/system. These functions automatically pass the origin parameter.
|
| |
|
| std::string | getFile (const std::string &path) |
| |
◆ MANTIS_FUNC
| #define MANTIS_FUNC |
( |
| ) |
std::format("{} - {}()", getFile(__FILE__), __FUNCTION__) |
◆ TRACE_CLASS_METHOD
| #define TRACE_CLASS_METHOD |
( |
| ) |
mb::FuncLogger _logger(std::format("{} {}::{}()", getFile(__FILE__), "", __FUNCTION__)); |
◆ TRACE_FUNC
◆ TRACE_MANTIS_FUNC
◆ TRACE_METHOD
| #define TRACE_METHOD |
( |
| ) |
mb::FuncLogger _logger(std::format("{} {}()", getFile(__FILE__), __FUNCTION__)); |
◆ getFile()
| std::string getFile |
( |
const std::string & |
path | ) |
|
|
inline |