Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bunyan-logsene

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

bunyan-logsene

A Bunyan stream for sending log data to Logsene

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bunyan-logsene

A Bunyan stream for saving logs into Logsene.

Install

The project is not yet in the npm repository. For now you will need to do:

npm install 6riversystems/bunyan-logsene

Example

var bunyan = require('bunyan');
var Logsene = require('bunyan-logsene');

var logseneStream = new Logsene({
	token: 'da607594-3883-4f5c-9b3a-97b9703a5db2'
});

var logger = bunyan.createLogger({
  name: "My Application",
  streams: [
    { stream: process.stdout },
    { stream: logseneStream,
      type: 'raw'
    }
  ]
});

logger.info('Starting application on port %d', app.get('port'));

NOTE: You must use the raw stream type.

Based On

The following projects were used to get this working:

  • https://github.com/Trozz/bunyan-elasticsearch (Original Fork)
  • https://github.com/sematext/winston-logsene (How To)
  • https://github.com/sematext/logsene-js (Core Dependency)

Keywords

FAQs

Package last updated on 15 Mar 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc