I'm using a library called spdlog for logging. I'd like to build my own Logger around the library so that I have the option of adding 'extra' functionality that's specific to my application.
I was able to get this code below working:
#include <spdlog/spdlog.h>
int main()
{
spdlog::log(spdlog::level::level_enum::info, "this is an info message");
return 0;
}
As you can see, logging levels are available via the enum that's namespaced at spdlog::level::level_enum
.
I may be overcomplicating this, but if I create my own Logger class will I have to expect classes using my logger to type out the entire enum's namespace in their logging function calls?