BuffaloBuffalo / nextjs-logging-example

Sample Repository illustrating trying to setup logging using AsyncLocalStorage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NextJs Repo to demonstrate attempting to use AsyncLocalStorage with Middleware

Start up the server:

npm install
npm run dev

Hit the server:

curl http://localhost:3000

Expected the [LOG] statements to include a uuid, however they do not:

<raw console.log>: context.getStore().get(uuid): 888294796
retrieved store:  undefined
[LOG] [undefined]: begin request
retrieved store:  undefined
[LOG] [undefined]: request finished

About

Sample Repository illustrating trying to setup logging using AsyncLocalStorage


Languages

Language:TypeScript 91.0%Language:CSS 6.8%Language:JavaScript 2.2%