Agora  1.2.0
Agora project
logger.h File Reference
#include <spdlog/common.h>
#include <spdlog/details/log_msg.h>
#include <spdlog/details/backtracer.h>
#include <vector>
Include dependency graph for logger.h:

Go to the source code of this file.

Classes

class  spdlog::logger
 

Namespaces

 spdlog
 

Macros

#define SPDLOG_LOGGER_CATCH(location)
 

Functions

SPDLOG_INLINE void spdlog::swap (logger &a, logger &b)
 

Macro Definition Documentation

◆ SPDLOG_LOGGER_CATCH

#define SPDLOG_LOGGER_CATCH (   location)
Value:
catch (const std::exception &ex) \
{ \
if (location.filename) \
{ \
err_handler_(fmt_lib::format("{} [{}({})]", ex.what(), location.filename, location.line)); \
} \
else \
{ \
err_handler_(ex.what()); \
} \
} \
catch (...) \
{ \
err_handler_("Rethrowing unknown exception in logger"); \
throw; \
}
utils::format
std::string format(const T &value)
Definition: utils.h:15