1.4.1 • Published 10 months ago

triple-beam v1.4.1

Weekly downloads
3,500,865
License
MIT
Repository
github
Last release
10 months ago

triple-beam

Definitions of levels for logging purposes & shareable Symbol constants.

Usage

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

Tests are written with mocha, assume, and nyc. They can be run with npm:

npm test
LICENSE: MIT
AUTHOR: Charlie Robbins
winstonlogformwinston-transportcuc-gaf@nerwin/common@collectivehealth/winston-multi-line-console-transport@ledgerhq/live-common@bonobolabs/firebase-tools-deploy-parallelismservice-calendarkinston@zigbang/logger@zigbang/zigbang-loggerukor-remaster@flytio/flyt-logger@polyfrost/core@rpi1337/winston-console-transport-in-worker@infinitebrahmanuniverse/nolb-trip@niklv/firebase-toolsfirebase-tools-angelo@everything-registry/sub-chunk-2972eastlake-sdk-nodegit-sync-allgaialauncher-core@olostecnologia/olos-loggerhelios-corepurpleteam-loggergrpcxewlprm-winstonhive-multisig-sdk@tricycle/log-winston@troubkit/log@trxn/nestjs-winston@tsukiy0/extensions-logging-winstonhybrid-coreefirebase-toolsfirebase-tools-with-isolatefirebase-rules-bundler@artcom/logger@bkouhen/utilsrune-loggerrsyslog-winston@bedrock/coresalak-loggersalak-winstonjm-ts-to-js-jsdoc@blastz/logger@blimmer/logform@api-typed/core@api-typed/framework@api-typed/loggeradvent-of-code-runnerkuzzle-plugin-loggersippsimplemc-core@codewarriorr/live-commonslnodejs@clusterio/liblapsus-corearvm-bestdeveloper@devon4ts/logform@clockworkgr/relayerinfra-workframereddit-notifier@adaptable/node-utils@zakku/winston-logs@adoyle.me/winston-transport@vizydrop/logger@yadah/subsystem-logger@adoyle.me/winstonrgblauncher-core@4xx22/helios-core@vscode-logging/loggerrmqem@vincent_wsc/pokonyan@agneta/platform@djaty/djaty-cliaudio-trainingatlassian@commercetools-backend/loggerssoundon-apiatv-dee-helpers-loggerauto-logging@dontrolle/mangrove.js@concorde2k/core.logger@confio/relayer@composer-js/core@dotcom-tool-kit/logger@dataden/corelimbo-corelimbo-corexavan-loggerlightrunawesome-cordova-plugins-retenoawesome-cordova-plugins-reteno-firebase@dsergeyev/loggerstoolielucy-coremaxchain-core@gameleap/logging-winston
1.4.1

10 months ago

1.4.0

10 months ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago