Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/themodernjavascript/express-logger-prod
The Logger for Express in production. It builds on the built-in Express logger. It will automatically rotate your logs and archive the old logs daily.
https://github.com/themodernjavascript/express-logger-prod
express express-js expressjs log logger logs morgan
Last synced: about 1 month ago
JSON representation
The Logger for Express in production. It builds on the built-in Express logger. It will automatically rotate your logs and archive the old logs daily.
- Host: GitHub
- URL: https://github.com/themodernjavascript/express-logger-prod
- Owner: themodernjavascript
- License: mit
- Created: 2018-08-24T07:43:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-28T02:24:17.000Z (about 6 years ago)
- Last Synced: 2024-10-10T09:24:33.111Z (about 1 month ago)
- Topics: express, express-js, expressjs, log, logger, logs, morgan
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/express-logger-prod
- Size: 47.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# express-logger-prod
The Logger for Express in production. It builds on the built-in Express logger. It will automatically rotate your logs and archive the old logs daily.
[![version](https://img.shields.io/npm/v/express-logger-prod.svg?style=flat-square)](https://www.npmjs.com/package/express-logger-prod) [![downloads](https://img.shields.io/npm/dm/express-logger-prod.svg?style=flat-square)](https://www.npmjs.com/package/express-logger-prod) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](http://opensource.org/licenses/MIT).
## Installation
```
npm install express-logger-prod --save
```or
```
npm i express-logger-prod --save
```## Usage
```
var loggerProd = require('express-logger-prod');app.use(loggerProd());
```## Log Structure
```
express-app
├── ...
├── logs
│ └── erros
│ └── error-2018-08-27.log
│ └── error-2018-08-28.log
├── ...
```