@infinitetoken/lumber
v1.0.0
Published
A node module for Lumber logging
Downloads
7
Readme
Lumber
Cloud logging for NodeJS
Installation
Use the package manager npm to install lumber.
npm install --save @infinitetoken/lumber
Usage
Import the lumber package and initialize it with your app token.
const lumber = require('@infinitetoken/lumber')('your_app_token')
Create some logs with one of six levels.
lumber.info('info')
lumber.debug('debug')
lumber.verbose('verbose')
lumber.warning('warning')
lumber.error('error')
lumber.critical('critical')
Optionally send stringified 'code' to any of the lumber methods.
lumber.info('info', JSON.stringify({ key: 'value' }, null, 2))
App
Lumber has a companion app available for MacOS, Windows, and LInux for viewing messages and errors logged to the cloud by using an optional API key. An API key can be obtained by creating a new app instance in the Lumber app.
License
Lumber is released under the MIT license. See LICENSE for details.