I am using Winston for logging with 2 different transports - File and MongoDB. I have set the level for File as \"INFO\" and for MongoDB as \"ERROR\". If I now log,
see this answer. I have written a wrapper for winston which covers the basic api. it needs extending for logging metadata, but otherwise its a good start. of course you will have to adjust this for your MongoDB needs.