·9 min read
Why your log's caller location always points at one line
A logger that reports where each log came from kept naming one identical line for the app. Its stack-frame filter never skipped itself. Bug, repro, fix.
2 posts
A logger that reports where each log came from kept naming one identical line for the app. Its stack-frame filter never skipped itself. Bug, repro, fix.
I shipped a default API route at app/api/__log/route.ts. It never mounted. Next.js treats any folder starting with an underscore as private and keeps it out of routing, with no build error and no warning — here are the two checks I added so nobody hits it again.