{"_id":"@slack/logger","_rev":"4204307","name":"@slack/logger","description":"Logging utility used by Node Slack SDK","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"ajm","email":""},{"name":"cchensh","email":""},{"name":"e-zim","email":""},{"name":"evegeris","email":""},{"name":"misscoded","email":""},{"name":"mwbrooks","email":"michael@michaelbrooks.ca"},{"name":"sgorbach0v","email":""},{"name":"slackhq","email":""},{"name":"slack_biztech","email":""},{"name":"stevegill","email":"stevengill97@gmail.com"}],"time":{"modified":"2026-03-04T17:02:57.000Z","created":"2019-03-28T22:01:26.046Z","4.0.0":"2023-08-25T19:47:23.968Z","3.0.0":"2021-01-12T19:55:49.752Z","2.0.0":"2019-10-09T22:29:14.090Z","1.1.1":"2019-10-09T19:19:45.801Z","1.1.0":"2019-09-25T22:54:05.396Z","1.0.0":"2019-03-28T22:01:26.046Z"},"users":{},"author":{"name":"Slack Technologies, LLC"},"repository":{"type":"git","url":"git+https://github.com/slackapi/node-slack-sdk.git"},"versions":{"4.0.0":{"name":"@slack/logger","version":"4.0.0","description":"Logging utility used by Node Slack SDK","author":{"name":"Slack Technologies, LLC"},"license":"MIT","keywords":["slack","logging"],"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">= 18","npm":">= 8.6.0"},"repository":{"type":"git","url":"git+https://github.com/slackapi/node-slack-sdk.git"},"homepage":"https://slack.dev/node-slack-sdk","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/slackapi/node-slack-sdk/issues"},"scripts":{"prepare":"npm run build","build":"npm run build:clean && tsc","build:clean":"shx rm -rf ./dist ./coverage ./.nyc_output","lint":"eslint --ext .ts src","mocha":"mocha --config .mocharc.json src/*.spec.js","test:unit":"npm run build && npm run mocha","test":"npm run lint && npm run test:unit","coverage":"npm run build && nyc --reporter=text-summary npm run mocha","ref-docs:model":"api-extractor run"},"dependencies":{"@types/node":">=18.0.0"},"devDependencies":{"@microsoft/api-extractor":"^7.36.4","@typescript-eslint/eslint-plugin":"^6.4.1","@typescript-eslint/parser":"^6.4.0","@types/chai":"^4.3.5","@types/mocha":"^10.0.1","chai":"^4.3.8","eslint":"^8.47.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-airbnb-typescript":"^17.1.0","eslint-plugin-import":"^2.28.1","eslint-plugin-jsdoc":"^46.5.0","eslint-plugin-node":"^11.1.0","mocha":"^10.2.0","nyc":"^15.1.0","shx":"^0.3.2","ts-node":"^8.2.0","sinon":"^15.2.0","source-map-support":"^0.5.21","typescript":"^4.1.0"},"gitHead":"25fe276ebfc6162415debeffe865ac5df7c6c08a","_id":"@slack/logger@4.0.0","_nodeVersion":"20.2.0","_npmVersion":"9.6.6","dist":{"shasum":"788303ff1840be91bdad7711ef66ca0cbc7073d2","size":3887,"noattachment":false,"key":"/@slack/logger/-/@slack/logger-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@slack/logger/download/@slack/logger-4.0.0.tgz"},"_npmUser":{"name":"filmaj","email":"maj.fil@gmail.com"},"directories":{},"maintainers":[{"name":"ajm","email":""},{"name":"cchensh","email":""},{"name":"e-zim","email":""},{"name":"evegeris","email":""},{"name":"misscoded","email":""},{"name":"mwbrooks","email":"michael@michaelbrooks.ca"},{"name":"sgorbach0v","email":""},{"name":"slackhq","email":""},{"name":"slack_biztech","email":""},{"name":"stevegill","email":"stevengill97@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger_4.0.0_1692992843767_0.04593336626884037"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-25T19:47:23.968Z","publish_time":1692992843968,"_source_registry_name":"default","_cnpm_publish_time":1692992843968},"3.0.0":{"name":"@slack/logger","version":"3.0.0","description":"Logging utility used by Node Slack SDK","author":{"name":"Slack Technologies, Inc."},"license":"MIT","keywords":["slack","logging"],"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">= 12.13.0","npm":">= 6.12.0"},"repository":{"type":"git","url":"git+https://github.com/slackapi/node-slack-sdk.git"},"homepage":"https://slack.dev/node-slack-sdk","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/slackapi/node-slack-sdk/issues"},"scripts":{"prepare":"npm run build","build":"npm run build:clean && tsc","build:clean":"shx rm -rf ./dist","lint":"tslint --project .","test":"npm run build && nyc mocha --config .mocharc.json src/*.spec.js","ref-docs:model":"api-extractor run"},"dependencies":{"@types/node":">=12.0.0"},"devDependencies":{"@microsoft/api-extractor":"^7.3.4","@types/chai":"^4.1.7","@types/mocha":"^5.2.6","chai":"^4.2.0","mocha":"^6.1.4","nyc":"^14.1.1","shx":"^0.3.2","ts-node":"^8.2.0","tslint":"^5.13.1","tslint-config-airbnb":"^5.11.1","typescript":"^4.1.0"},"_id":"@slack/logger@3.0.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"shasum":"b736d4e1c112c22a10ffab0c2d364620aedcb714","size":3041,"noattachment":false,"key":"/@slack/logger/-/@slack/logger-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@slack/logger/download/@slack/logger-3.0.0.tgz"},"_npmUser":{"name":"stevegill","email":"stevengill97@gmail.com"},"directories":{},"maintainers":[{"name":"ajm","email":""},{"name":"cchensh","email":""},{"name":"e-zim","email":""},{"name":"evegeris","email":""},{"name":"misscoded","email":""},{"name":"mwbrooks","email":"michael@michaelbrooks.ca"},{"name":"sgorbach0v","email":""},{"name":"slackhq","email":""},{"name":"slack_biztech","email":""},{"name":"stevegill","email":"stevengill97@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger_3.0.0_1610481349644_0.8532615780290329"},"_hasShrinkwrap":false,"publish_time":1610481349752,"_cnpm_publish_time":1610481349752,"_cnpmcore_publish_time":"2021-12-16T20:23:38.335Z"},"2.0.0":{"name":"@slack/logger","version":"2.0.0","description":"Logging utility used by Node Slack SDK","author":{"name":"Slack Technologies, Inc."},"license":"MIT","keywords":["slack","logging"],"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">= 8.9.0","npm":">= 5.5.1"},"repository":{"type":"git","url":"git+https://github.com/slackapi/node-slack-sdk.git"},"homepage":"https://slack.dev/node-slack-sdk","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/slackapi/node-slack-sdk/issues"},"scripts":{"prepare":"npm run build","build":"npm run build:clean && tsc","build:clean":"shx rm -rf ./dist","lint":"tslint --project .","test":"npm run build && nyc mocha --config .mocharc.json src/*.spec.js"},"dependencies":{"@types/node":">=8.9.0"},"devDependencies":{"@types/chai":"^4.1.7","@types/mocha":"^5.2.6","chai":"^4.2.0","mocha":"^6.1.4","nyc":"^14.1.1","shx":"^0.3.2","ts-node":"^8.2.0","tslint":"^5.13.1","tslint-config-airbnb":"^5.11.1","typescript":"^3.3.3333"},"gitHead":"60a33b5de096255c4c1b714d3ff1c820e1b50e33","_id":"@slack/logger@2.0.0","_nodeVersion":"11.0.0","_npmVersion":"lerna/3.13.1/node@v11.0.0+x64 (darwin)","dist":{"shasum":"6a4e1c755849bc0f66dac08a8be54ce790ec0e6b","size":3653,"noattachment":false,"key":"/@slack/logger/-/@slack/logger-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@slack/logger/download/@slack/logger-2.0.0.tgz"},"maintainers":[{"name":"ajm","email":""},{"name":"cchensh","email":""},{"name":"e-zim","email":""},{"name":"evegeris","email":""},{"name":"misscoded","email":""},{"name":"mwbrooks","email":"michael@michaelbrooks.ca"},{"name":"sgorbach0v","email":""},{"name":"slackhq","email":""},{"name":"slack_biztech","email":""},{"name":"stevegill","email":"stevengill97@gmail.com"}],"_npmUser":{"name":"shanedewael","email":"sdewael@slack-corp.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger_2.0.0_1570660153957_0.8400498658590299"},"_hasShrinkwrap":false,"publish_time":1570660154090,"_cnpm_publish_time":1570660154090,"_cnpmcore_publish_time":"2021-12-16T20:23:38.667Z"},"1.1.1":{"name":"@slack/logger","version":"1.1.1","description":"Logging utility used by Node Slack SDK","author":{"name":"Slack Technologies, Inc."},"license":"MIT","keywords":["slack","logging"],"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">= 8.9.0","npm":">= 5.5.1"},"repository":{"type":"git","url":"git+https://github.com/slackapi/node-slack-sdk.git"},"homepage":"https://slack.dev/node-slack-sdk","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/slackapi/node-slack-sdk/issues"},"scripts":{"prepare":"npm run build","build":"npm run build:clean && tsc","build:clean":"shx rm -rf ./dist","lint":"tslint --project .","test":"npm run build && echo \"Tests are not implemented.\" && exit 0"},"dependencies":{"@types/node":">=8.9.0"},"devDependencies":{"@types/chai":"^4.1.7","@types/mocha":"^5.2.6","chai":"^4.2.0","mocha":"^6.1.4","nyc":"^14.1.1","shx":"^0.3.2","ts-node":"^8.2.0","tslint":"^5.13.1","tslint-config-airbnb":"^5.11.1","typescript":"^3.3.3333"},"gitHead":"ab2589733fbc84b62044e0905ffdd29b3c14c87e","_id":"@slack/logger@1.1.1","_nodeVersion":"11.0.0","_npmVersion":"lerna/3.13.1/node@v11.0.0+x64 (darwin)","dist":{"shasum":"5cb0658abcd2c4ec39ecf04348ba4764b9f68e00","size":3603,"noattachment":false,"key":"/@slack/logger/-/@slack/logger-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@slack/logger/download/@slack/logger-1.1.1.tgz"},"maintainers":[{"name":"ajm","email":""},{"name":"cchensh","email":""},{"name":"e-zim","email":""},{"name":"evegeris","email":""},{"name":"misscoded","email":""},{"name":"mwbrooks","email":"michael@michaelbrooks.ca"},{"name":"sgorbach0v","email":""},{"name":"slackhq","email":""},{"name":"slack_biztech","email":""},{"name":"stevegill","email":"stevengill97@gmail.com"}],"_npmUser":{"name":"shanedewael","email":"sdewael@slack-corp.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger_1.1.1_1570648785683_0.06156707158004382"},"_hasShrinkwrap":false,"publish_time":1570648785801,"_cnpm_publish_time":1570648785801,"_cnpmcore_publish_time":"2021-12-16T20:23:38.880Z"},"1.1.0":{"name":"@slack/logger","version":"1.1.0","description":"Logging utility used by Node Slack SDK","author":{"name":"Slack Technologies, Inc."},"license":"MIT","keywords":["slack","logging"],"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">= 8.9.0","npm":">= 5.5.1"},"repository":{"type":"git","url":"git+https://github.com/slackapi/node-slack-sdk.git"},"homepage":"https://slack.dev/node-slack-sdk","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/slackapi/node-slack-sdk/issues"},"scripts":{"prepare":"npm run build","build":"npm run build:clean && tsc","build:clean":"shx rm -rf ./dist","lint":"tslint --project .","test":"npm run build && nyc mocha --config .mocharc.json src/*.spec.js"},"dependencies":{"@types/node":">=8.9.0"},"devDependencies":{"@types/chai":"^4.1.7","@types/mocha":"^5.2.6","chai":"^4.2.0","mocha":"^6.1.4","nyc":"^14.1.1","shx":"^0.3.2","ts-node":"^8.2.0","tslint":"^5.13.1","tslint-config-airbnb":"^5.11.1","typescript":"^3.3.3333"},"gitHead":"8a3f777519718ffb87cbde712f75b8d594255f84","_id":"@slack/logger@1.1.0","_nodeVersion":"12.2.0","_npmVersion":"lerna/3.16.4/node@v12.2.0+x64 (darwin)","dist":{"shasum":"563a97e38670109cba5a1ec1c4f3098bc0d344c6","size":3701,"noattachment":false,"key":"/@slack/logger/-/@slack/logger-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@slack/logger/download/@slack/logger-1.1.0.tgz"},"maintainers":[{"name":"ajm","email":""},{"name":"cchensh","email":""},{"name":"e-zim","email":""},{"name":"evegeris","email":""},{"name":"misscoded","email":""},{"name":"mwbrooks","email":"michael@michaelbrooks.ca"},{"name":"sgorbach0v","email":""},{"name":"slackhq","email":""},{"name":"slack_biztech","email":""},{"name":"stevegill","email":"stevengill97@gmail.com"}],"_npmUser":{"name":"aoberoi","email":"aoberoi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger_1.1.0_1569452045270_0.8427542880601975"},"_hasShrinkwrap":false,"publish_time":1569452045396,"_cnpm_publish_time":1569452045396,"_cnpmcore_publish_time":"2021-12-16T20:23:39.138Z"},"1.0.0":{"name":"@slack/logger","version":"1.0.0","description":"Logging utility used by Node Slack SDK","author":{"name":"Slack Technologies, Inc."},"license":"MIT","keywords":["slack","logging"],"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">= 8.9.0","npm":">= 5.5.1"},"repository":{"type":"git","url":"git+https://github.com/slackapi/node-slack-sdk.git"},"homepage":"https://slack.dev/node-slack-sdk","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/slackapi/node-slack-sdk/issues"},"scripts":{"prepare":"npm run build","build":"npm run build:clean && tsc","build:clean":"shx rm -rf ./dist","lint":"tslint --project .","test":"npm run build && echo \"Tests are not implemented.\" && exit 0"},"dependencies":{"@types/node":">=8.9.0"},"devDependencies":{"shx":"^0.3.2","tslint":"^5.13.1","tslint-config-airbnb":"^5.11.1","typescript":"^3.3.3333"},"gitHead":"891307eb5f1625f68b72e4c242ba749a7d6cb996","_id":"@slack/logger@1.0.0","_nodeVersion":"10.15.1","_npmVersion":"lerna/3.13.1/node@v10.15.1+x64 (darwin)","dist":{"shasum":"e529974c7111f8a62d794a79cd807eee1628088b","size":3555,"noattachment":false,"key":"/@slack/logger/-/@slack/logger-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@slack/logger/download/@slack/logger-1.0.0.tgz"},"maintainers":[{"name":"ajm","email":""},{"name":"cchensh","email":""},{"name":"e-zim","email":""},{"name":"evegeris","email":""},{"name":"misscoded","email":""},{"name":"mwbrooks","email":"michael@michaelbrooks.ca"},{"name":"sgorbach0v","email":""},{"name":"slackhq","email":""},{"name":"slack_biztech","email":""},{"name":"stevegill","email":"stevengill97@gmail.com"}],"_npmUser":{"name":"aoberoi","email":"aoberoi@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/logger_1.0.0_1553810485905_0.6014950953130698"},"_hasShrinkwrap":false,"publish_time":1553810486046,"_cnpm_publish_time":1553810486046,"_cnpmcore_publish_time":"2021-12-16T20:23:39.341Z"}},"readme":"# Slack Logger\n\nThe `@slack/logger` package is intended to be used as a simple logging interface that supports verbosity levels.\n\n## Requirements\n\nThis package supports Node v18 and higher. It's highly recommended to use [the latest LTS version of\nnode](https://github.com/nodejs/Release#release-schedule), and the documentation is written using syntax and features\nfrom that version.\n\n## Installation\n\n```shell\n$ npm install @slack/logger\n```\n\n## Usage\n\nThis package exports a `ConsoleLogger` class, a generic `Logger` interface and a `LogLevel` enum.\nThe source code is short (~150 lines of code), so check out `src/index.ts` for details, but the `ConsoleLogger` API\nmimics the default node `console` API with three additions:\n\n- `getLevel()`: returns the currently-specific `LogLevel` of the logger.\n- `setLevel(LogLevel)`: sets the `LogLevel` of the logger.\n- `setName(string)`: sets a prefix to display in logs. Useful if you have multiple loggers active.\n\n## Getting Help\n\nIf you get stuck, we're here to help. The following are the best ways to get assistance working through your issue:\n\n  * [Issue Tracker](http://github.com/slackapi/node-slack-sdk/issues) for questions, feature requests, bug reports and\n    general discussion related to this package. Try searching before you create a new issue.\n  * [Email us](mailto:developers@slack.com) in Slack developer support: `developers@slack.com`\n","_attachments":{},"homepage":"https://slack.dev/node-slack-sdk","bugs":{"url":"https://github.com/slackapi/node-slack-sdk/issues"},"license":"MIT"}