Repository URL to install this package:
|
Version:
1.0.0-1 ▾
|
vending-octopus-service-dep
/
usr
/
local
/
lib
/
vending
/
octopus
/
service
/
node_modules
/
triple-beam
|
|---|
| .. |
| config |
| index.js |
| CHANGELOG.md |
| package.json |
| .eslintrc |
| .gitattributes |
| LICENSE |
| README.md |
| .travis.yml |
| test.js |
Definitions of levels for logging purposes & shareable Symbol constants.
const { LEVEL } = require('triple-beam'); const colors = require('colors/safe'); const info = { [LEVEL]: 'error', level: 'error', message: 'hey a logging message!' }; // Colorize your log level! info.level = colors.green(info.level); // And still have an unmutated copy of your level! console.log(info.level === 'error'); // false console.log(info[LEVEL] === 'error'); // true
Tests are written with mocha, assume, and nyc. They can be run with npm:
npm test