1

say we build our spdlog object as the following?

logger = std::make_shared<spdlog::logger>("some name", sink_list.begin(), sink_list.end());

Is there a method such as logger->get_name() or anything else that would return "some name"

Alejandro
  • 879
  • 11
  • 27

1 Answers1

3

Is there a method such as logger->get_name() or anything else that would return "some name"

There is.

logger->name()

(source)

Drew Dormann
  • 59,987
  • 13
  • 123
  • 180