Easy Logging with the Morgan Express.js Middleware (and custom tokens).
➥ Repo: https://github.com/pragmatic-reviews/...
➥ Buy Me a Coffee: https://buymeacoff.ee/pragmatic
➥➥ Learn even more! ➥➥
Learn Next.js ➥ https://bit.ly/PragmaticNext
Learn Contentful ➥ https://bit.ly/PragmaticContentful
Learn Strapi ➥ http://bit.ly/PragmaticStrapi
Learn Gatsby ➥ https://bit.ly/PragmaticGatsby
Learn Deno ➥ https://bit.ly/LearnDeno
Learn GraphQL ➥ https://bit.ly/LearnGraphQL
Golang in the Cloud ➥ https://bit.ly/LearnGolangCloud
Gin Crash Course ➥ http://bit.ly/2SXdJu2
Golang Crash Course ➥ http://bit.ly/39ZH8dy
Zapier Crash Course ➥ http://bit.ly/37q1BGt
Timestamps:
Intro - 0:00
Reviewing existing Express.js project - 0:31
Installing Morgan - 0:55
Adding a route-level middleware with Morgan - 1:14
Reviewing logging formats in Morgan - 1:38
Testing multiple logging formats (combined, tiny, random tokens) - 2:28
Adding an application-level middleware with Morgan - 3:56
Adding custom tokens with Morgan (id, body) - 4:55
Outro - 7:59
#Express #Morgan #Logging