0.2.4 • Published 4 years ago

bluefin-jot v0.2.4

Weekly downloads
66
License
MIT
Repository
github
Last release
4 years ago

Jot

A simple interface for telemetry.

Installation

npm install --save bluefin-jot

or

yarn add bluefin-jot

Basic Usage

// example.js
const {Jot} = require('bluefin-jot')

// create a new jot instance
const jot = new Jot()

// emit log messages
jot.debug('excruciating detail', {withStructuredData: true})
jot.info('normal verbosity', {more: 'details'})
jot.warning('worrisome event')

// emit metrics
jot.magnitude('intensity', 100, {force: 'magnetism'})
jot.count('widgets', 3)

// emit a stack trace
const error = new Error('made a mistake')
jot.error('job failed', error, {jobName: 'setup'})

Run the script with an environment variable:

DEBUG=jot node example.js
0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago