add support log write in mongoDB