{"id":18278195,"url":"https://github.com/log4js-node/mailgun","last_synced_at":"2025-04-09T04:38:36.595Z","repository":{"id":39252976,"uuid":"123977225","full_name":"log4js-node/mailgun","owner":"log4js-node","description":"Mailgun Appender for Log4JS","archived":false,"fork":false,"pushed_at":"2023-10-21T01:38:39.000Z","size":759,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-25T21:20:45.308Z","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-03-05T20:51:08.000Z","updated_at":"2022-06-24T03:58:13.000Z","dependencies_parsed_at":"2024-11-05T12:23:28.724Z","dependency_job_id":"fef1bc31-593a-44ec-a287-9b02f9860bf2","html_url":"https://github.com/log4js-node/mailgun","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log4js-node%2Fmailgun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log4js-node%2Fmailgun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log4js-node%2Fmailgun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log4js-node%2Fmailgun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/log4js-node","download_url":"https://codeload.github.com/log4js-node/mailgun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980830,"owners_count":21027803,"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:26.221Z","updated_at":"2025-04-09T04:38:36.570Z","avatar_url":"https://github.com/log4js-node.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mailgun Appender for Log4JS\n\nThis is an optional appender for [log4js-node](https://log4js-node.github.io/log4js-node/).\n\n```bash\nnpm install @log4js-node/mailgun\n```\n\nThis appender uses the [mailgun](https://www.mailgun.com) service to send log messages as emails. It uses the [mailgun-js](https://www.npmjs.com/package/mailgun-js) package.\n\n## Configuration\n\n* `type` - `@log4js-node/mailgun`\n* `apiKey` - `string` - your mailgun API key\n* `domain` - `string` - your domain\n* `from` - `string`\n* `to` - `string`\n* `subject` - `string`\n* `layout` - `object` (optional, defaults to basicLayout) - see [layouts](layouts.md)\n\nThe body of the email will be the result of applying the layout to the log event. Refer to the mailgun docs for how to obtain your API key.\n\n## Example\n\n```javascript\nlog4js.configure({\n  appenders: {\n    type: '@log4js-node/mailgun',\n    apiKey: '123456abc',\n    domain: 'some.company',\n    from: 'logging@some.service',\n    to: 'important.bosses@some.company',\n    subject: 'Error: Developers Need To Be Fired'\n  }\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog4js-node%2Fmailgun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flog4js-node%2Fmailgun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog4js-node%2Fmailgun/lists"}