Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/segment-boneyard/loggly
Loggly client for node.js
https://github.com/segment-boneyard/loggly
Last synced: about 5 hours ago
JSON representation
Loggly client for node.js
- Host: GitHub
- URL: https://github.com/segment-boneyard/loggly
- Owner: segment-boneyard
- Created: 2014-05-20T22:49:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-28T21:25:07.000Z (about 10 years ago)
- Last Synced: 2024-04-09T16:31:11.671Z (7 months ago)
- Language: JavaScript
- Size: 234 KB
- Stars: 26
- Watchers: 40
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# loggly
Loggly client for node that buffers messages and perform bulk requests out of the box.
## Installation
```
$ npm install segmentio/loggly
```## Example
```js
var Loggly = require('loggly');
var log = new Loggly('your-token-here');log.send({ level: 'info', foo: 'bar' })
log.info('something')
log.warn('some stuff', { info: 'here' })
```## Options
- `bufferSize` size of the queue [100]
- `flushInterval` flush interval in ms [5000]
- `host` hostname defaulting to os.hostname()
- `level` log level [info]## Levels
Syslog level methods are provided.
# License
MIT