Skip to content

๐Ÿ“ Monitor and analyze your Express applications with ease using this lightweight npm package.

Notifications You must be signed in to change notification settings

PedroFnseca/logger-endpoints-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

npm version Npm package total downloads Npm package monthly downloads GitHub stars GitHub issues GitHub last commit

Logger Endpoints API - Logging Middleware for Express

A lightweight and efficient package for automatically logging requests and responses in Express applications, providing valuable insights into API performance and activity.


Installation

To install the package, run the following command:

npm install logger-endpoints-api

Usage

Basic integration with an Express server:

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

const app = express();

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

// Route definition
app.get('/', (req, res) => {
    res.send('Hello, World!');
});

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

Output Example

Note: The actual output may vary depending on the application's requests and responses.

Key Benefits

  • Automatic logging of requests and responses
  • Easy integration with Express applications
  • Detailed insights into API activity
  • Lightweight and high-performance code
  • Enhanced transparency in API monitoring

Maintain full visibility over your APIs with Logger Endpoints API.

About

๐Ÿ“ Monitor and analyze your Express applications with ease using this lightweight npm package.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published