Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcbachmann/pino-comune
A common log formatter for pino-http
https://github.com/marcbachmann/pino-comune
formatter log pino
Last synced: 27 days ago
JSON representation
A common log formatter for pino-http
- Host: GitHub
- URL: https://github.com/marcbachmann/pino-comune
- Owner: marcbachmann
- Created: 2017-03-14T22:10:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:47:35.000Z (11 months ago)
- Last Synced: 2024-04-14T14:40:26.523Z (7 months ago)
- Topics: formatter, log, pino
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pino-comune
A pino-http reporter that formats all request logs in the common log format.
All non-http logs aren't are ignored and not logged to stdout.### Usage
```
$ npm install pino-comune
$ node server.js | pino-comune
::1 - - [14/Mar/2017:23:00:27 +0000] "GET /hello HTTP/1.1" 200 11
::1 - - [14/Mar/2017:23:00:27 +0000] "GET /favicon.ico HTTP/1.1" 200 11
::1 - - [14/Mar/2017:23:00:29 +0000] "GET /foobar HTTP/1.1" 200 11
::1 - - [14/Mar/2017:23:00:29 +0000] "GET /favicon.ico HTTP/1.1" 200 11
```