Socket
Book a DemoInstallSign in
Socket

bblog-logentries

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bblog-logentries

BBLog Logentries stream

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Logentries stream for BBLog

See BBlog ( https://github.com/blacha/bblog )

This is a NodeJS only package.

Example

var BBLog = require('bblog').Log;
var LogentriesStream = require('bblog-le').LogentriesStream;
var log = BBLog.createLogger({
    name: 'Hello',
    hostname: 'google.com',
    stream: new LogEntriesStream(BBLog.TRACE, 'API KEY')
});

log.info('Hello World');
// {"pid":0,"time":"2016-03-21T21:38:40.092Z","hostname":"google.com","level":30,"msg":" Hello World","v":0,"name":"Hello"}


var childLogger = log.child({key: 'value'});
childLogger.warn('Child Logger');
// {"pid":0,"time":"2016-03-21T21:38:40.100Z","hostname":"google.com","level":40,"msg":" Child Logger","v":0,"name":"Hello","key":"value"}

Keywords

Bunyan

FAQs

Package last updated on 17 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts