add logger option
Merge pull request #19 from maxvipon/logger

Add logger option for using a custom logger