query the spdlog logger name

Solution 1:

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

There is.

logger->name()

(source)