New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sumologic

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sumologic

Sync Application logs to sumo logic directly via their http API

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

node-sumologic

A well tested, drop-in replacement for console.log that syncs logs directly to Sumo Logic via their HTTP api (as opposed to using their collectors)

Installation

npm install sumologic

Usage

var SumoLogger = require('sumologic')

// Optional opts
var opts = {
   request // wrapper around https://www.npmjs.com/package/request (useful for testing)
   endpoint // default https://collectors.au.sumologic.com/receiver/v1/http/, change again mostly to aid testing/debugging
   syncInterval // how often we should sync to sumo logic (default ever second)
};

var logger = new SumoLogger('SUMOLOGIC-HTTP-COLLECTOR-CODE' /*, opts */);

// optional - if you would like console.log to go to sumo logic
logger.replaceConsole()

// optional - if you would like console.log to go to sumo logic and stdout
logger.augmentConsole()

logger.log("Yeah, it worked");

Keywords

sumo

FAQs

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