Function Karana::Core::error(std::string_view)

Function Karana::Core::error(std::string_view)#

Function Documentation#

void Karana::Core::error(std::string_view 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.