Support custom loggers
Using typeof keyword instead of function
Merge pull request #63 from alex-whitney/aw/custom-logger

Support custom loggers