@raynode/nx-logger-loggly
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Node.js version NPM version semantic-release Greenkeeper badge build with travis-ci tested with jest Coverage Status npm version

nx-logger-loggly

nx-logger-loggly 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-loggly using npm:

npm i @raynode/nx-logger-loggly

Usage

import { transport } from 'nx-logger-loggly'
import { create, configure } from 'nx-logger'

configure({ transport })
const logger = create('my-logger')

The created logger will send the namespace as tags to loggly and the message will be the content 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.

@TODO
logger('Test') // will be send to loggly with tag:my-logger and content '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

Package Sidebar

Install

npm i @raynode/nx-logger-loggly

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

6.19 kB

Total Files

6

Last publish

Collaborators

  • lordnox
  • raynode-admin
  • tkopelke