I have the following macro that works for this case:
#define logger(p) loggerImpl(p, #p) void loggerImpl(int paramValue, const std::string paramName) { st