Photon 1.0.0
Loading...
Searching...
No Matches
logger.h File Reference
#include <spdlog/common.h>
#include <spdlog/details/log_msg.h>
#include <spdlog/details/backtracer.h>
#include <vector>

Go to the source code of this file.

Classes

class  spdlog::logger
 

Namespaces

namespace  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(SPDLOG_FMT_STRING("{} [{}({})]"), ex.what(), location.filename, location.line)); \
} \
else \
{ \
err_handler_(ex.what()); \
} \
} \
catch (...) \
{ \
err_handler_("Rethrowing unknown exception in logger"); \
throw; \
}
#define SPDLOG_FMT_STRING(format_string)
Definition common.h:60