@raynode/nx-logger-sentry
v1.1.0
Published
[![Node.js version][nodejs-badge]][nodejs] [![NPM version][npm-badge]][npm] [![semantic-release][semantic-release-badge]][semantic-release] [![Greenkeeper badge][greenkeeper-badge]][greenkeeper] [![build with travis-ci][travis-badge]][travis] [![tested wi
Downloads
4
Readme
nx-logger-sentry
nx-logger-sentry is a transport for nx-logger
- TypeScript 2.9 to ES6 transpilation
- TSLint 5.x
- Jest unit testing and code coverage
- Type definitions for Node.js v6.x (LTS) and Jest
- .editorconfig for consistent file format
Getting Started
Install nx-logger-sentry using npm:
npm i @raynode/nx-logger-sentry
Usage
import { transport } from 'nx-logger-sentry'
import { create, configure } from 'nx-logger'
configure({ transport })
const logger = create('my-logger')
The created logger will send the namespace as a tag to sentry.io and the message will be the message of the log entry. This might be updated in the future to contain timestamps and more information, but at the current point in time (version 1) it is as simple as it gets.
logger('Test') // will be send to loggly with Namespace:my-logger and Message 'Test'
Contributing
If you want to help with this project, just leave a bugreport or pull request. I'll try to come back to you as soon as possible
License
MIT