Fixes #230. Also made logging facility use calling method as context.
Merge pull request #231 from jpav/master

Fixes #230. Also made logging facility use calling method as context.