Add function name to log

This adds function name to every log entry. This should make it easier
to find out where the log message actually originated.