https://github.com/open-node/open-rest-access-log
https://github.com/open-node/open-rest-access-log
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/open-node/open-rest-access-log
- Owner: open-node
- Created: 2016-07-06T11:26:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-07T04:10:58.000Z (about 8 years ago)
- Last Synced: 2024-04-14T07:29:23.618Z (about 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# open-rest-middle-ware-access-log
==================================[](https://travis-ci.org/open-node/open-rest-access-log)
[](https://codecov.io/gh/open-node/open-rest-access-log)## Node version
>= 6# Usage
Write access log for http-servernpm install open-rest-access-log --save
const logger = require('open-rest-access-log');
// /var/log/app/access-20160630.log
// /var/log/app/access-20160701.log
// /var/log/app/access-20160702.log
logger('/var/log/app/access', 'YYYY-MM-DD HH:mm:ss', logFormat);