1.4.1 • Published 2 years ago

triple-beam v1.4.1

Weekly downloads
3,500,865
License
MIT
Repository
github
Last release
2 years 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
winstonwinston-transportlogformcuc-gaf@nerwin/common@collectivehealth/winston-multi-line-console-transport@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-2972winston-no-fswinston-openobservewinston-ovhwinston-papertrail-transportwinston-newrelic-agent-transportwinston-azure-blobwinston-lgwinston-log-rotate-transportwinston-logger-nodewinston-kafka-streamwinston-kafka-yanwinston-logziowinston-lumberjack-rotatewinston-journald3winston-rotating-filewinston-sandstormwinston-splunk-http-transportwinston-syslogwinston-telegram-mazhwinston-console-formatwinston-compatwinston-daily-rotate-filewinston-daily-rotate-file-upgradewinston-daily-rotate-file2winston-azure-data-tableswinston-dev-formatwinston-duplexwinston-humanize-formatterwinston-error-formatwinston-firehosewinston-format-debugwinston-format-pretty-consolewinston-google-analytics-transportwinston-transport-discordwinston-transport-sentry-nodewinston-zmq-pushpullwinston61299winstonnewwinston-verror-formatwinston-transport-vscodewalklogger-winstonweb-elements-iconsweb_scada_loggerws-ap-librarywhitebeamxinstonteapackage-tatespoorman297superpeer-firebase-toolsstoolietester-coresvag-loggertibet@discue/firebase-tools@dotcom-tool-kit/logger@dontrolle/mangrove.js@djaty/djaty-cli@dsergeyev/logger@clusterio/lib@composer-js/core@confio/relayer@commercetools-backend/loggers@benbria/winston-elasticsearch@rosmarinus/node-utils@permaconn.com/loggingjaid-loggerjm-ts-to-js-jsdockafkajs-loggerjuliokriger-winston-transport-discordlateslauncher-corelapsus-corekuzzle-plugin-logger@concorde2k/core.loggermongos-corestreamdeck-transportsoundon-apitw-logger@api-typed/core@api-typed/framework@api-typed/logger@artcom/logger@anyit/log-winston-actor
1.4.1

2 years ago

1.4.0

2 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago