Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (27 sloc) 0.645 kb

logentries-stream

Stream interface for logentries

Prerequisites

A logentries account

Install

npm install logentries-stream

Usage

Simple

var logstream = require('logentries-stream')('LOGENTRIES_TOKEN', 'LOG_LEVEL');
logstream.write('Hello World');

With Bunyan

npm install bunyan
npm install logentries-stream

Sample Code

var Logger = require('bunyan');
var loglevel = 'info';
var logstream = require('logentries-stream')('LOGENTRIES_TOKEN', loglevel); 
var log = new Logger({name: "myapp", stream: logstream, level: loglevel});

log.info('bunyan FTW');        
Jump to Line
Something went wrong with that request. Please try again.