Function Karana::Core::error(const std::string&)#
Defined in File MsgLogger.h
Function Documentation#
-
void Karana::Core::error(const std::string &msg)#
Write an error to all loggers.
We use spdlog’s normal enum levels, but we rename them for our purposes. The map between them can easily be seen in the _levelConvert methods below. That is why you will see some strange things like, for example, in the error functions where we call spdlog::critical; it is because our error level maps to their critical level.
- Parameters:
msg – The error message.