lib-logger

v0.0.1-security
This package name is not currently in use, but was formerly occupied by another package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.

Lib-logger

Enforces all your logs to be displayed as JSON following stackdriver specification so you can filter by it's values.

Usage

Install it through: npm i lib-logger

const log = require('lib-logger');

log.debug("Application started!",{httpServer:address});
log.info(`Shipment ${shipmentID} delivered!`,{shipmentID, amount, items});

Export the environment vars APP_NAME and APP_VERSION in order to see the error reporting on stackdriver.

Metadata

  • ISC
  • Whatever
  • Unknown
  • released 1/18/2017

Downloads

Maintainers