add logging information to MongoDB