{"id":18278192,"url":"https://github.com/log4js-node/loggly","last_synced_at":"2025-04-05T04:31:02.710Z","repository":{"id":40791365,"uuid":"122535129","full_name":"log4js-node/loggly","owner":"log4js-node","description":"Loggly Appender for Log4JS","archived":false,"fork":false,"pushed_at":"2023-07-08T00:10:45.000Z","size":1211,"stargazers_count":5,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T18:01:35.520Z","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-02-22T21:04:48.000Z","updated_at":"2024-07-12T04:56:54.000Z","dependencies_parsed_at":"2024-08-30T13:40:53.911Z","dependency_job_id":null,"html_url":"https://github.com/log4js-node/loggly","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":"0.26315789473684215","last_synced_commit":"5bfb6fc8fc3d5603ad90136c326664bea592d07a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log4js-node%2Floggly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log4js-node%2Floggly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log4js-node%2Floggly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log4js-node%2Floggly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/log4js-node","download_url":"https://codeload.github.com/log4js-node/loggly/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.303Z","updated_at":"2025-04-05T04:30:57.636Z","avatar_url":"https://github.com/log4js-node.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loggly Appender for Log4JS\n\nSends logging events to [Loggly](https://www.loggly.com), optionally adding tags. This appender uses [node-loggly-bulk](https://www.npmjs.com/package/node-loggly-bulk). Consult the docs for node-loggly-bulk, or loggly itself, if you want more information on the configuration options below.\n\n## Installation\n\n`npm install @log4js-node/loggly`\n\n(This is a plug-in appender for [log4js](https://log4js-node.github.io/log4js-node/), so you'll need that as well)\n\n\n## Configuration\n\n* `type` - `@log4js-node/loggly`\n* `token` - `string` - your really long input token\n* `subdomain` - `string` - your subdomain\n* `auth` - `object` (optional) - authentication details\n  * `username` - `string`\n  * `password` - `string`\n* `tags` - `Array\u003cstring\u003e` (optional) - tags to include in every log message\n\nThis appender will scan the msg from the logging event, and pull out any argument of the\nshape `{ tags: [] }` so that it's possible to add additional tags in a normal logging call. See the example below.\n\n## Example\n\n```javascript\nlog4js.configure({\n  appenders: {\n    loggly: {\n      type: '@log4js-node/loggly',\n      token: 'somethinglong',\n      subdomain: 'your.subdomain',\n      tags: [ 'tag1' ]\n    }\n  },\n  categories: {\n    default: { appenders: ['loggly'], level: 'info' }\n  }\n});\n\nconst logger = log4js.getLogger();\nlogger.info({ tags: ['my-tag-1', 'my-tag-2'] }, 'Some message');\n```\n\nThis will result in a log message being sent to loggly with the tags `tag1`, `my-tag-1`, `my-tag-2`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog4js-node%2Floggly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flog4js-node%2Floggly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog4js-node%2Floggly/lists"}