Log now has the step function name
Adding check for anonymous functions.

As suggested by @n1k0
Merge pull request #426 from sreeix/log_with_function_name

refs #425 Log now has the step function name