Add support for logging callback
Fix anchor links
Merge pull request #2 from mgdm/add-log-callback

Add log callback