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

@smarterservices/boom-loggly

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

@smarterservices/boom-loggly

Error wrapper that logs to loggly and outputs a boom error object

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

boom-loggly

Description: Error wrapper that logs to loggly and outputs a boom error object

##Getting started:

npm install boom-loggly --save

Usage:

var boom-loggly = require('boom-loggly')
var e = new boom-loggly({
	loggly:{
    token:'',
    subdomain:'',
    username:'',
    password:'',
    tags:['']
}
})

###constructor params:

because boom-loggly post to loggly when an error happens you need to include loggly object for your account.

###Method: addError()

Description: Generates and returns a dynamic boom object and logs an object to loggly.

e.addError(request_id,status,log_object,output,tags);

request_id(required):Will be a unique id used to track an error.
status_id(required): The status number of the error. Used to generate a dynamic boom object.
log_object(required): The object that will be sent to loggly.
output(required): What the user will see as the message in actual boom error.
tags(optional): tags set when sending to loggly.

Keywords

FAQs

Package last updated on 12 Apr 2016

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