Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedrofnseca/logger-endpoints-api
📝 Monitor and analyze your Express applications with ease using this lightweight npm package.
https://github.com/pedrofnseca/logger-endpoints-api
api api-rest express expressjs library logger logging nodejs npm-package
Last synced: 5 days ago
JSON representation
📝 Monitor and analyze your Express applications with ease using this lightweight npm package.
- Host: GitHub
- URL: https://github.com/pedrofnseca/logger-endpoints-api
- Owner: PedroFnseca
- Created: 2023-07-27T19:44:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-01T05:29:54.000Z (over 1 year ago)
- Last Synced: 2024-11-08T01:53:44.444Z (7 days ago)
- Topics: api, api-rest, express, expressjs, library, logger, logging, nodejs, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/logger-endpoints-api
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![npm version](https://img.shields.io/npm/v/logger-endpoints-api.svg?style=plastic&logo=npm)](https://www.npmjs.org/package/logger-endpoints-api)
[![Npm package total downloads](https://badgen.net/npm/dt/logger-endpoints-api)](https://npmjs.com/package/logger-endpoints-api)
[![Npm package monthly downloads](https://badgen.net/npm/dm/logger-endpoints-api)](https://npmjs.ccom/package/logger-endpoints-api)# 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```js
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.