1.0.8 • Published 4 years ago

loghog v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

loghog.js

A very simple package to assist your API-request logging needs!

Installation

npm install loghog

Example

const express = require('express');
const app = express();

app.use(loghog({
    path: './log.txt'
}));

//You can also use the following code to output directly to the console.
app.use(loghog());

Output

2021-03-14, 21:31:07 -> GET: /getCustomers
2021-03-14, 21:31:49 -> POST: /addCustomer?name=John&password=Doe
2021-03-14, 21:32:45 -> DELETE: /deleteCustomer?id=1
2021-03-14, 21:33:04 -> PUT: /changeCustomer?id=1&name=Joe

Options

Author

Olle Johansson https://github.com/ollejj

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago