Added suport for logging in Mongo Db.