rails logger class compatibility with rails 4