/le_typescript

LE TypeScript

Primary LanguageTypeScriptMIT LicenseMIT

LogEntries (Rapid7 InsightOps) SDK in TypeScript

  • Simple & easy to use API
  • Promise interface
  • Works in NodeJS and Browser
  • Fully tested

Build Status License Dependency Status

Usage

const Logger = require('le').Logger;

const logger = new Logger('YOUR_TOKEN');

(async function () {
  await logger.error('boom');
  await logger.warning('boom');
  await logger.info('boom');
  await logger.log('boom');
})();

Check out documentation page.

Documentation

https://afshinm.github.io/le_typescript/docs/

TODO

  • Adding stacktrace to the logs
  • Global error catcher
  • Adding platform info to the logs

License

MIT