Changes the output formatter a bunch. Hope this all good :v:
changes
req and res are now visually more distinguishable, given the similarity of the words it was tricky to figure out which was which at a glance. Experimented with using emojis for this but ASCII turned out better
if there's a method available, the statuscode is now always set - if there's no statuscode, use xxx to make sure request and response pairs visually align
changed the ordering or method, statuscode and url so they'll always align visually
changed the chalk.dim() calls to chalk.gray() to fix a bug where text wasn't displayed as gray in 16-color terminal themes (e.g. not all themes have a lighter version of white, all themes should have a readable version of gray)
deduped some code introduced in the pino-http patch
fixed a bug where the value delimiter in responseSize was sometimes spaced, and sometimes not
Changes the output formatter a bunch. Hope this all good :v:
changes
req
andres
are now visually more distinguishable, given the similarity of the words it was tricky to figure out which was which at a glance. Experimented with using emojis for this but ASCII turned out betterxxx
to make sure request and response pairs visually alignchalk.dim()
calls tochalk.gray()
to fix a bug where text wasn't displayed as gray in 16-color terminal themes (e.g. not all themes have a lighter version of white, all themes should have a readable version of gray)pino-http
patchscreenshot