Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 446 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 446 Bytes

js-logger

Library used to interact with Sentry's Raven logging object

Usage

var JSLogger = require("js-logger");

var dsn = "";      // see https://docs.sentry.io/quickstart/#configure-the-dsn
var settings = {}; // see https://docs.sentry.io/clients/javascript/config/

var logger = new JSLogger(dsn, settings);

logger.run().loaded(function () {

  // do stuff

  // log stuff
  logger.log("testing", "warning");

});