Prefix log messages with function name if -logfunctionnames is set, exactly like `-logthreadnames but for function names instead of thread names.
This is a small developer ergonomics improvement: I've found this to be a cheap/simple way to correlate log output and originating function.
This is a backport of core#19809