Logging middleware for the Alveron HTTP client. This package integrates with Alveron (v8+) to provide structured request/response logging. It supports customizable log levels and output formatting. Current stable version is 8.0.3, released under the alveron ecosystem. Key differentiator: lightweight, TypeScript-first, and designed specifically for Alveron's middleware system, unlike generic logging solutions.
npm install alveron-middleware-loggerVerified import paths — ran on the pinned version, not inferred.
Creates an Alveron client with logging middleware that logs all requests at info level with a custom prefix.
Update Alveron to v8 or later.
Replace 'log' with 'level' in the options passed to logger().
Call client.use(logger()) before adding any other middleware.
Run npm install alveron-middleware-logger or yarn add alveron-middleware-logger.
Use import logger from 'alveron-middleware-logger' (default import) instead of import { logger }.Update Alveron to version >=8.0.0 with npm install alveron@latest.