Socket
Socket
Sign inDemoInstall

@smarterservices/boom-loggly

Package Overview
Dependencies
70
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
1
Maintainers
1
Install size
3.65 MB
Created
Weekly downloads
 

Readme

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

Last updated on 12 Apr 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc