{"id":19196964,"url":"https://github.com/jitesoft/yolog-slack-plugin","last_synced_at":"2026-05-10T16:03:36.258Z","repository":{"id":35831079,"uuid":"219326380","full_name":"jitesoft/yolog-slack-plugin","owner":"jitesoft","description":"Slack plugin for @jitesoft/yolog.","archived":false,"fork":false,"pushed_at":"2024-04-05T22:04:50.000Z","size":1747,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-04T10:08:33.026Z","etag":null,"topics":["hacktoberfest","jitesoft","slack","slack-webhooks","yolog","yolog-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jitesoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-11-03T15:59:22.000Z","updated_at":"2023-10-26T13:00:25.000Z","dependencies_parsed_at":"2024-02-19T02:30:24.139Z","dependency_job_id":"dc7dd6f9-5e41-4d7a-9406-500ff3903ff6","html_url":"https://github.com/jitesoft/yolog-slack-plugin","commit_stats":{"total_commits":46,"total_committers":4,"mean_commits":11.5,"dds":"0.10869565217391308","last_synced_commit":"2c8bb686ac0f9153fd0047faf508307f98c7c2b3"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fyolog-slack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fyolog-slack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fyolog-slack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jitesoft%2Fyolog-slack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jitesoft","download_url":"https://codeload.github.com/jitesoft/yolog-slack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240271531,"owners_count":19774859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","jitesoft","slack","slack-webhooks","yolog","yolog-plugin"],"created_at":"2024-11-09T12:15:01.215Z","updated_at":"2026-05-10T16:03:36.156Z","avatar_url":"https://github.com/jitesoft.png","language":"JavaScript","funding_links":["https://opencollective.com/jitesoft-open-source"],"categories":[],"sub_categories":[],"readme":"# Yolog Slack plugin\n\n\n[![npm (scoped)](https://img.shields.io/npm/v/@jitesoft/yolog-slack-plugin)](https://www.npmjs.com/package/@jitesoft/yolog-slack-plugin)\n[![Known Vulnerabilities](https://dev.snyk.io/test/npm/@jitesoft/yolog-slack-plugin/badge.svg)](https://dev.snyk.io/test/npm/@jitesoft/yolog-slack-plugin)\n[![pipeline status](https://gitlab.com/jitesoft/open-source/javascript/yolog-plugins/slack/badges/master/pipeline.svg)](https://gitlab.com/jitesoft/open-source/javascript/yolog-plugins/slack/commits/master)\n[![coverage report](https://gitlab.com/jitesoft/open-source/javascript/yolog-plugins/slack/badges/master/coverage.svg)](https://gitlab.com/jitesoft/open-source/javascript/yolog-plugins/slack/commits/master)\n[![npm](https://img.shields.io/npm/dt/@jitesoft/yolog-slack-plugin)](https://www.npmjs.com/package/@jitesoft/yolog-slack-plugin)\n[![Back project](https://img.shields.io/badge/Open%20Collective-Tip%20the%20devs!-blue.svg)](https://opencollective.com/jitesoft-open-source)\n\n\nPlugin for the [`@jitesoft/yolog`](https://www.npmjs.com/package/@jitesoft/yolog) logger to post logs to Slack.\n\nThis plugin makes use of the slack WebHooks, hence it is only supported on the server side and not browser.\n\n![Example view](https://raw.githubusercontent.com/jitesoft/yolog-slack-plugin/master/example.png)\n\n## Usage:\n\nInstall with your favorite package manager!\n\n```bash\nnpm i @jitesoft/yolog-slack-plugin --save\nyarn add @jitesoft/yolog-slack-plugin\n```\n\nImport and use just as with any other yolog plugin!\n\n```js\nimport logger from '@jitesoft/yolog';\nimport SlackPlugin from '@jitesoft/yolog-slack-plugin';\nlogger.addPlugin(new SlackPlugin('https://webhook/uri'));\n```\n\nThe constructor of the slack plugin takes a slack webhook uri, (please check the slack documentation on how to acquire\none of those) and an optional channel with the `#` prefix (or user with the `@` prefix). If the channel argument is not \nset, it will use the default channel set up with the webhook.\n\n### Notification\n\nThe notification text can be changed with the `notificationText` setter. It defaults to `A log message with the tag '%s' was logged!` where `%s` will be changed the tag name.  \nYou may also add another `%s` (check the [`@jitesoft/sprintf`](https://www.npmjs.com/package/@jitesoft/sprintf) module for more info about the placeholders) which will be changed to the log message.\n\n### Call stack\n\nIn case the message is one of the 'higher level' logging types (error, critical, alert or emergency), the call stack (from the yolog #log method as of now) will be printed as an extra section in the message.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fyolog-slack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjitesoft%2Fyolog-slack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjitesoft%2Fyolog-slack-plugin/lists"}