Expressjs Logging

expressjs

How can we configure Express to log only information for a particular component?

To see the logs only from the router implementation set the value of DEBUG to express:router. Likewise, to see logs only from the application implementation set the value of DEBUG to express:application, and so on.

DEBUG=express:router
DEBUG=express:application
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License