Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrvautin/winston-ezylogs
The ezyLogs transport for Winston
https://github.com/mrvautin/winston-ezylogs
logging logs transport winston
Last synced: about 1 month ago
JSON representation
The ezyLogs transport for Winston
- Host: GitHub
- URL: https://github.com/mrvautin/winston-ezylogs
- Owner: mrvautin
- License: mit
- Created: 2018-11-16T13:47:48.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-16T13:56:37.000Z (about 6 years ago)
- Last Synced: 2024-10-13T18:49:48.083Z (3 months ago)
- Topics: logging, logs, transport, winston
- Language: JavaScript
- Homepage: https://ezylogs.com
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Winston ezyLogs Transport
See [ezylogs.com](https://ezylogs.com) for more info.
``` javascript
const winston = require('winston');const {
createLogger,
} = winston;
const EzylogsWinstonTransport = require('winston-ezylogs');const ezylogsWinstonTransport = new EzylogsWinstonTransport({
system: 'logger',
apiKey: 'ezylogs-api-key',
});
const logger = createLogger({
transports: [ezylogsWinstonTransport]
});const logMessage = 'Just a test message';
const errorMessage = 'Big problem';
const error = new Error(errorMessage);
logger.log('error', logMessage, error);
logger.log('warn', logMessage);
```