Changed how the method name is processed and added a check in the log
method that made sure the log message was made in the same method as the
expectation