Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/segment-boneyard/winston-logger
Create a winston logger using a simple API.
https://github.com/segment-boneyard/winston-logger
Last synced: about 7 hours ago
JSON representation
Create a winston logger using a simple API.
- Host: GitHub
- URL: https://github.com/segment-boneyard/winston-logger
- Owner: segment-boneyard
- Created: 2013-12-11T22:41:35.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-25T00:25:21.000Z (almost 11 years ago)
- Last Synced: 2024-04-09T16:31:16.440Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 139 KB
- Stars: 3
- Watchers: 40
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# winston-logger
Create a winston logger using a simple API.
## Example
```js
var Logger = require('winston-logger');var logger = Logger({ console: true });
logger.info(..)
```Here's an example `development` option set:
```js
{
"console" : true
}
```And `production` options:
```js
{
"file" : true,
"console" : false,
"mail" : {
"to": "[email protected]",
"from": "[email protected]",
"level": "critical",
"host": "smtp.sendgrid.net",
"username": "sendgrid_user",
"password": "sendgrid_pass",
"ssl": false
},
"papertrail" : {
"host": "logs.papertrailapp.com",
"port": 10000,
"level": "error"
}
}
```## API
#### Logger(options)
Create a winston logger with provided transports in the options.
## License
```
WWWWWW||WWWWWW
W W W||W W W
||
( OO )__________
/ | \
/o o| MIT \
\___/||_||__||_|| *
|| || || ||
_||_|| _||_||
(__|__|(__|__|
```