1.2.3 • Published 9 months ago

logger-endpoints-api v1.2.3

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

npm version Npm package total downloads Npm package monthly downloads

Logger endpoints API

Express API Logger: A lightweight npm package for easy integration of request and response logging in Express applications, providing valuable insights into API activity and performance.

Installation

You can install the package using npm. Run the following command:

npm i logger-endpoints-api

Usage

basic usage in Express

const express = require('express');
const logger = require('logger-endpoints-api');

// ... Your Express app setup ...
const app = express();

// Add the logger middleware before your routes
app.use(logger);

// ... Your routes and other middleware ...

// Start the server
app.listen(3000, () => {
  console.log('Server is running on port 3000');
});

Output

Example in Express application

Note: The image above is just an example to illustrate the output; the actual output will vary based on your application's requests and responses.

1.2.3

9 months ago

1.2.2

9 months ago

1.2.1

9 months ago

1.2.0

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago