1234567891011121314151617181920212223242526272829303132 |
- #include "logger.h"
- #include "qdebug.h"
- /**
- * @brief Logger::info
- * @param log
- */
- void Logger::info(QString log)
- {
- spdlog::stdout_logger_mt("console", true);
- spdlog::get("console")->info(log.toStdString());
- }
- /**
- * @brief Logger::critical
- * @param log
- */
- void Logger::critical(QString log)
- {
- spdlog::stdout_logger_mt("console", true);
- spdlog::get("console")->critical(log.toStdString());
- }
- /**
- * @brief Logger::error
- * @param log
- */
- void Logger::error(QString log)
- {
- spdlog::stdout_logger_mt("console", true);
- spdlog::get("console")->error(log.toStdString());
- }
|