Logging HTTP Requests #334
justindasilva
started this conversation in
General
Replies: 1 comment 3 replies
-
this worked for me:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How would I go about adding logging HTTP requests to my Nitro server?
If Nitro doesn't support this in an easy way, is there a way I can use something like Morgan (https://www.npmjs.com/package/morgan), although this module seems to be more integrated with Express.
Basically, if I run
yarn dev
, and if I access one of my routes such as/hello
, I would like the terminal to log something like:Would be nice to have some control over what is being logged, but not required as long as all the important stuff is there.
Not sure if this functionality exists somewhere already?
Beta Was this translation helpful? Give feedback.
All reactions