Skip to content

Add request logging middleware #7

@noeljackson

Description

@noeljackson

Add a simple request logging middleware to the Express app that logs:

  • HTTP method
  • URL path
  • Response status code
  • Response time in milliseconds

Use the standard morgan package with the dev format. Add it as a dependency and wire it up in the main app file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    launch-codespaceAuto-launch a Coder workspace for this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions