How to sanitize logs in rails app using mongoid

Hi,
I would like to know if there exists feature/work around to sanitize logs. What I am looking for is feature like this but for non enterprise mongo DB.
Since mongo DB uses the same logger instance as does rails, I am looking for a customizable solution, which I can use to override/sanitize these logs generated by mongoDB.
Logs which look this this when running rails server -

MONGODB | [8] mongo:27017 #1 | test.insert | STARTED | {"insert"=>"xyz", "ordered"=>true, "documents"=>[{"_id"=>BSON::ObjectId('xxxx'), "name"=>"zebra3", "access_token"=>"heyheyhey", "url"=>"http://example.com"}], "lsid"=>{"id"=><BSON::Bina...
web_1     | MONGODB | [8] mongo:27017 | test.insert | SUCCEEDED | 0.001s

My intent would be to have something like this instead at least -

MONGODB | [8] mongo:27017 #1 | test.insert | STARTED | {"insert"=>"xyz", "ordered"=>true, "documents"=>[{"_id"=>BSON::ObjectId('xxxx'), "name"=>"####", "access_token"=>"#####", "url"=>"####"}], "lsid"=>{"id"=><BSON::Bina...
web_1     | MONGODB | [8] mongo:27017 | test.insert | SUCCEEDED | 0.001s

Any pointers around this, will be very helpful to understand mongo DB and logging.

Thanks!