Hi,
I need to automatically prepend method name to some logging messages. I've been using __FUNCTION__
to do it but it generates the fully qualified name of the method ( namespace::class:method ). So it's wasting a lot of space and makes logs less readable. Is there any way to append only the method name in a MACRO, without any unnecessary qualifiers?