查询 spdlog 记录器名称
query the spdlog logger name
假设我们构建我们的 spdlog 对象如下?
logger = std::make_shared<spdlog::logger>("some name", sink_list.begin(), sink_list.end());
是否有诸如 logger->get_name()
之类的方法或任何其他 return “某个名称”
Is there a method such as logger->get_name()
or anything else that would return "some name"
有。
logger->name()
假设我们构建我们的 spdlog 对象如下?
logger = std::make_shared<spdlog::logger>("some name", sink_list.begin(), sink_list.end());
是否有诸如 logger->get_name()
之类的方法或任何其他 return “某个名称”
Is there a method such as
logger->get_name()
or anything else that would return "some name"
有。
logger->name()