robb-j / gruber

(WIP) A standards-based JavaScript server library & patterns
0 stars 0 forks source link

Request logging #5

Open robb-j opened 8 months ago

robb-j commented 8 months ago

It would be good to have an API for- or best-practice guide to do HTTP request logging

robb-j commented 5 months ago

My current process has been like:

Deno.serve(async req => {
  const res = await router.getResponse(req)
  console.log(res.status, req.method, req.url)
  return res
}