Integrating the mongo logging. Added a stdout logger for testing withoug mongo.