Adding logger for ActiveRecord