@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 432 B
JavaScript
import e from"../../logger/index.mjs";import{createMiddleware as t}from"hono/factory";const n=t(async(t,n)=>{let r=Date.now(),i=t.req.method,a=t.req.path,o=t.req.header(`user-agent`);await n();let s=t.res.status,c=Date.now()-r;e.info({event:`http.request.completed`,message:`${i} ${a} ${s} ${c}ms`,scope:`http`,data:{durationMs:c,method:i,path:a,status:s,userAgent:o}})});export{n as default};
//# sourceMappingURL=log-route.mjs.map