You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found myself wanting to consume logs in a server runtime as json. This helps me consume/query/filter logs in a far easier manner, than parsing the messages.
To do this, and w/o forcing this on users I will expose a new entrypoint diary/middleware .
The idea being, that here we'll the suite of hooks?? (might not) as well as a collection of "baked-in" plugins, like json and maybe request logger. etc.
Maybe api:
import{json}from'diary/middleware';import{diary}from'diary';constlogger=diary('');json();// will assume globaljson(logger);// will just log as json for `logger`
The text was updated successfully, but these errors were encountered:
I have found myself wanting to consume logs in a server runtime as json. This helps me consume/query/filter logs in a far easier manner, than parsing the messages.
To do this, and w/o forcing this on users I will expose a new entrypoint
diary/middleware
.The idea being, that here we'll the suite of hooks?? (might not) as well as a collection of "baked-in" plugins, like
json
and mayberequest logger
. etc.Maybe api:
The text was updated successfully, but these errors were encountered: