{"id":26452980,"url":"https://github.com/xseman/log4js-appender-sentry","last_synced_at":"2025-03-18T18:41:12.123Z","repository":{"id":216283142,"uuid":"656817619","full_name":"xseman/log4js-appender-sentry","owner":"xseman","description":"Log4js Sentry appender","archived":false,"fork":false,"pushed_at":"2024-10-24T20:15:44.000Z","size":96,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T06:04:26.265Z","etag":null,"topics":["appender","log4js","log4js-node","logger","sentry"],"latest_commit_sha":null,"homepage":"https://npm.im/log4js-appender-sentry","language":"TypeScript","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/xseman.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-06-21T17:48:03.000Z","updated_at":"2024-10-24T20:15:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4c2cfbe-4685-45b0-b9a0-609bb75c26ce","html_url":"https://github.com/xseman/log4js-appender-sentry","commit_stats":null,"previous_names":["arch-group/log4js-appender-sentry","xseman/log4js-appender-sentry"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xseman%2Flog4js-appender-sentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xseman%2Flog4js-appender-sentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xseman%2Flog4js-appender-sentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xseman%2Flog4js-appender-sentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xseman","download_url":"https://codeload.github.com/xseman/log4js-appender-sentry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244282973,"owners_count":20428104,"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":["appender","log4js","log4js-node","logger","sentry"],"created_at":"2025-03-18T18:41:11.529Z","updated_at":"2025-03-18T18:41:12.117Z","avatar_url":"https://github.com/xseman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# log4js appender - Sentry\n\nSends logging events to Sentry. This appender integrates\n[@sentry/node][sentry_javascript].\n\n[sentry_javascript]: https://github.com/getsentry/sentry-javascript\n\n![visual](docs/visual.svg)\n\n## Installation\n\n**npm registry**\n\n```sh\nnpm install log4js-appender-sentry\n```\n\n## Configuration\n\n### TypeScript\n\nIf you're using TypeScript, importing this library as a side effect will\nautomatically merge the log4js interface `Appenders`. This merging enables\nautocomplete for the appenders configuration, providing convenient access to its\nproperties.\n\n```ts\nimport \"log4js-appender-sentry\";\n```\n\n### Example\n\n```ts\nimport log4js from \"log4js\";\n\nimport \"log4js-appender-cloudwatch\";\n\nlog4js.configure({\n\tappenders: {\n\t\tsentry: {\n\t\t\ttype: \"log4js-appender-sentry\",\n\t\t\tdsn: \"\u003cconfig\u003e\",\n\t\t\tuser: {\n\t\t\t\t// ...\n\t\t\t},\n\t\t},\n\t},\n\tcategories: {\n\t\tdefault: {\n\t\t\tlevel: \"debug\",\n\t\t\tappenders: [\n\t\t\t\t\"sentry\",\n\t\t\t],\n\t\t},\n\t},\n});\n\nconst log = log4js.getLogger();\n// ...\n```\n\n## Options\n\nSentry is mainly used to report application errors so the default log level is\n`WARN` and above, other log levels will be ignored.\n\n### type\n\n_Required_\\\nType: log4js-appender-sentry\n\nThe type of the appender. Must be set to `log4js-appender-sentry`.\n\n### dsn\n\n_Required_\\\nType: `string`\n\nA DSN (Data Source Name) specifies where the Sentry SDK should send events,\nensuring they are associated with the correct project. Refer to the Sentry\n[documentation][sentry_dsn] for more details on DSN.\n\n[sentry_dsn]: https://docs.sentry.io/product/sentry-basics/dsn-explainer/\n\n### user\n\n_Optional_\\\nType: `User`\n\n```ts\n// import { User } from \"@sentry/node/types\";\n\ninterface User {\n\t[key: string]: any;\n\tid?: string;\n\tip_address?: string;\n\temail?: string;\n\tusername?: string;\n\tsegment?: string;\n}\n```\n\nUser data used for scope configuration. For additional information, see the\nSentry user [documentation][sentry_user].\n\n[sentry_user]: https://docs.sentry.io/platforms/javascript/enriching-events/identify-user/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxseman%2Flog4js-appender-sentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxseman%2Flog4js-appender-sentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxseman%2Flog4js-appender-sentry/lists"}