Added an option to use Sentry for logging

*And other minor logging improvements.*