项目作者: afshinm

项目描述 :
LE TypeScript
高级语言: TypeScript
项目地址: git://github.com/afshinm/le_typescript.git
创建时间: 2018-07-26T10:48:44Z
项目社区:https://github.com/afshinm/le_typescript

开源协议:MIT License

下载


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

  1. const Logger = require('le').Logger;
  2. const logger = new Logger('YOUR_TOKEN');
  3. (async function () {
  4. await logger.error('boom');
  5. await logger.warning('boom');
  6. await logger.info('boom');
  7. await logger.log('boom');
  8. })();

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