Added ability to specify the logger

Let me know if you need me to change anything.  I haven't actually tested it yet, if you want me to before accepting the pull request, let me know.