Enabled logging with mongodb

Enabled logging with mongodb