
Create Evlog Framework Integration
This generates the boilerplate for adding a new framework integration to evlog, a structured logging library. You get two paths: manifest mode for standard request/response middleware frameworks like Hono or Express (about 30 lines of glue code), or custom mode for frameworks with weird lifecycles like NestJS or SvelteKit. The manifest approach uses defineFrameworkIntegration and covers roughly 80% of cases, while custom mode drops down to createMiddlewareLogger when you need more control. If you're maintaining evlog or want to add support for your preferred web framework, this scaffolds the integration pattern with reference implementations already in the repo.
- skills.sh installs
- 503
- GitHub stars
- 1.7K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add hugorcd/evlog --skill create-evlog-framework-integration --agent claude-codeInstalls into .claude/skills of the current project.
Files
Create evlog Framework Integration
Add a new framework integration to evlog. The recommended path is the manifest mode built on defineFrameworkIntegration from evlog/toolkit, for any framework with a request/response middleware shape. For frameworks with a fundamentally different lifecycle you'll fall back to the lower-level createMiddlewareLogger.
Two paths
- Manifest mode (preferred, ~30–80 lines of glue). Call
defineFrameworkIntegration({ name, extractRequest, attachLogger, storage? })once at module level, then write a tiny middleware that callsintegration.start(ctx, options)and runs the framework'snext()insiderunWith. Reference implementations: all ofpackages/evlog/src/{hono,express,fastify,elysia,nestjs,orpc,react-router,sveltekit,workers}/index.tsuse it. - Custom mode: use
createMiddlewareLoggerdirectly when the framework's lifecycle doesn't fit a standard middleware. Current custom-mode integrations: Next.js (src/next/), Nitro v2/v3 (src/nitro/,src/nitro-v3/), Eve (src/eve/).
Sponsors
Details
- Repository
- github.com/hugorcd/evlog
- Categories
- Backend & APIs, DevOps & CI/CD, Documentation
- First seen
- Jun 3, 2026