Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/megaads-vn/nodejs-megalogger-client
https://github.com/megaads-vn/nodejs-megalogger-client
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/megaads-vn/nodejs-megalogger-client
- Owner: megaads-vn
- Created: 2016-08-05T10:09:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-08T02:18:52.000Z (over 8 years ago)
- Last Synced: 2024-12-01T19:47:20.293Z (about 1 month ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nodejs megalogger client
##Installation:
```
npm install megalogger
```##Usage:
```javascript
var Megalogger = require('megalogger');// your apiKey
var apiKey = 'asefas_efjhj-afsd64sf';
var source = 'Your source';
var initData = {
apiKey: apiKey,
source: source
};
// Log
var dataLog = {title: "This is title", body: "Message test"};// level for log include: info, debug, warning, error, critical
var level = 'info';
// init instance of class Megalogger
var logger = new Megalogger(initData);// push log
logger.log(dataLog, level);
```