New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zaneray/express-logging

Package Overview
Dependencies
Maintainers
10
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zaneray/express-logging

Seller of the Product

  • 0.0.4
  • npm
  • Socket score

Version published
Weekly downloads
63
decreased by-25%
Maintainers
10
Weekly downloads
 
Created
Source

ZaneRay Express Logging

Structured logging in all environments

Definitions

Environments

  • dev
  • test
  • staging
  • prod

Log Levels

  • 0: error
  • 1: warn
  • 2: info
  • 3: verbose
  • 4: debug
  • 5: silly

Nice logging output to defined output destinations

Usage


// in your code.js const Logging = require("@zaneray/express-logging");

// pass the environment in the constructor // for 'prod', the stackdriver logger will be added to the target output destination const logging = new Logging("test");

//pass the logging level in the getLogger method const logger = logging.getLogger("error");

// Writes some log entries logger.error("warp nacelles offline"); logger.info("shields at 99%");

API

POST /addPledge

  • request.body={"email": "jonkofal@zaneray.com","bags": 5,"ipaddress": "66.135.64.2","location": {"_latitude": 47, "_longitude": 320 }}
  • responses
    • 200 - irrelevant
    • 500 - invalid data, nasty HTML error

GET /coordinates

  • responses
    • 200 - [ {"_longitude": 320,"_latitude": 47}, {"_latitude": 33,"_longitude": 220}]

GET /bagCount

  • responses
    • 200 - {"bagCount": 15}

FAQs

Package last updated on 13 Dec 2019

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