Added logger as config option. Useful for logging with Rails.