ExpressJS Tutorial
ExpressJS Useful Resources
Selected Reading
- ExpressJS - Resources
- ExpressJS - Best Practices
- ExpressJS - Debugging
- ExpressJS - Error handling
- ExpressJS - Scaffolding
- ExpressJS - RESTful APIs
- ExpressJS - Authentication
- ExpressJS - Sessions
- ExpressJS - Cookies
- ExpressJS - Database
- ExpressJS - Form Data
- ExpressJS - Static Files
- ExpressJS - Templating
- ExpressJS - Middleware
- ExpressJS - URL Building
- ExpressJS - HTTP Methods
- ExpressJS - Routing
- ExpressJS - Hello World
- ExpressJS - Environment
- ExpressJS - Overview
- ExpressJS - Home
ExpressJS Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
ExpressJS - Debugging
ExpressJS - Debugging
Express uses the
module to internally log information about route matching, middleware functions, apppcation mode, etc.To see all internal logs used in Express, set the DEBUG environment variable to Express:* when starting the app −
DEBUG = express:* node index.js
The following output will be displayed.
These logs are very helpful when a component of your app is not functioning right. This verbose output might be a pttle overwhelming. You can also restrict the DEBUG variable to specific area to be logged. For example, if you wish to restrict the logger to apppcation and router, you can use the following code.
DEBUG = express:apppcation,express:router node index.js
Debug is turned off by default and is automatically turned on in production environment. Debug can also be extended to meet your needs, you can read more about it at
Advertisements