{"id":18278191,"url":"https://github.com/log4js-node/slack","last_synced_at":"2025-04-05T04:31:04.576Z","repository":{"id":37853792,"uuid":"136984360","full_name":"log4js-node/slack","owner":"log4js-node","description":"Slack Appender for log4js-node","archived":false,"fork":false,"pushed_at":"2023-07-20T07:07:04.000Z","size":728,"stargazers_count":8,"open_issues_count":4,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T22:18:34.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/log4js-node.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,"publiccode":null,"codemeta":null}},"created_at":"2018-06-11T21:45:31.000Z","updated_at":"2024-07-12T04:59:17.000Z","dependencies_parsed_at":"2024-06-18T22:54:23.084Z","dependency_job_id":null,"html_url":"https://github.com/log4js-node/slack","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":0.3846153846153846,"last_synced_commit":"9fc5aed898180c3e897f83f2d1a83f4e272f17d9"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log4js-node%2Fslack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log4js-node%2Fslack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log4js-node%2Fslack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log4js-node%2Fslack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/log4js-node","download_url":"https://codeload.github.com/log4js-node/slack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289382,"owners_count":20914463,"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":[],"created_at":"2024-11-05T12:23:25.249Z","updated_at":"2025-04-05T04:30:59.485Z","avatar_url":"https://github.com/log4js-node.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slack Appender for log4js-node\n\nSends log events to a [slack](https://slack.com) channel. This is an optional appender for use with [log4js](https://log4js-node.github.io/log4js-node/).\n```bash\nnpm install @log4js-node/slack\n```\n\n## Configuration\n\n* `type` - `@log4js-node/slack`\n* `token` - `string` - your Slack API token (see the slack and slack-node docs)\n* `channel_id` - `string` - the channel to send log messages\n* `icon_url` - `string` (optional) - the icon to use for the message\n* `username` - `string` - the username to display with the message\n* `layout` - `object` (optional, defaults to `basicLayout`) - the layout to use for the message (see [layouts](layouts.md)).\n\n## Example\n\n```javascript\nlog4js.configure({\n  appenders: {\n    alerts: {\n      type: '@log4js-node/slack',\n      token: 'abc123def',\n      channel_id: 'prod-alerts',\n      username: 'our_application'\n    }\n  },\n  categories: {\n    default: { appenders: ['alerts'], level: 'error' }\n  }\n});\n```\nThis configuration will send all error (and above) messages to the `prod-alerts` slack channel, with the username `our_application`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog4js-node%2Fslack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flog4js-node%2Fslack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog4js-node%2Fslack/lists"}