See every request. Capture every error. Understand your application.
Cipher Logger is a lightweight, production-ready HTTP request logging library for Node.js. It captures every request in your app — Express, Next.js, and more frameworks on the way — with full control over which fields get logged.
- TypeScript-first, fully typed API
- Configurable fields — required fields always logged, optional fields opt-in
- Framework adapters for Express and Next.js, with more in progress
- Zero heavy dependencies — only your framework as an optional peer dependency
- Node.js 18+
npm install cipher-logger
# or
pnpm add cipher-logger
# or
yarn add cipher-loggerimport { createCipherLogger } from "cipher-logger";
const cipher = createCipherLogger({
fields: { ip: true, userAgent: true, query: true },
level: "info",
});
app.use(cipher.express());Full documentation — configuration reference, framework guides (Express, Next.js, and upcoming adapters), log schema, API reference, and architecture — lives on the docs site:
Contributions are welcome.
- Check open issues before opening a new one
- Fork the repo and create a branch:
git checkout -b feature/my-feature - Follow Conventional Commits for commit messages
- Run
pnpm run buildbefore submitting - Open a Pull Request
See the full contributing guide on the docs site for details.
Made with ❤️ for developers by CipherUnits
