{"id":18900020,"url":"https://github.com/likema/log4js-node-xmpp","last_synced_at":"2025-10-18T05:03:11.130Z","repository":{"id":12813915,"uuid":"15488924","full_name":"likema/log4js-node-xmpp","owner":"likema","description":"A log4js-node log appender to send logging events using XMPP protocol.","archived":false,"fork":false,"pushed_at":"2015-02-07T08:49:07.000Z","size":179,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T17:42:26.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/likema.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}},"created_at":"2013-12-28T07:26:47.000Z","updated_at":"2015-02-07T08:47:37.000Z","dependencies_parsed_at":"2022-08-26T22:24:32.739Z","dependency_job_id":null,"html_url":"https://github.com/likema/log4js-node-xmpp","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/likema%2Flog4js-node-xmpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likema%2Flog4js-node-xmpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likema%2Flog4js-node-xmpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likema%2Flog4js-node-xmpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/likema","download_url":"https://codeload.github.com/likema/log4js-node-xmpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239879471,"owners_count":19712218,"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-08T08:48:47.676Z","updated_at":"2025-10-18T05:03:06.107Z","avatar_url":"https://github.com/likema.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# log4js-node-xmpp [![Build Status](https://travis-ci.org/likema/log4js-node-xmpp.png)](https://travis-ci.org/likema/log4js-node-xmpp)\n\nA log4js-node log appender to send logging events using XMPP protocol.\n\n## Installation\n\n\tnpm install log4js-node-xmpp\n\n## Usage\n\nPlease use it as other log4js-node appenders. It needs `host`, `jid` and `password` at least.\n\n```js\nvar log4js = require('log4js'),\n    xmpp = require('log4js-node-xmpp'),\n    logger = log4js.getLogger('hello');\n\nlog4js.addAppender(xmpp.configure({\n    client: {\n        host: 'talk.google.com',\n        jid: '\u003cusername\u003e',\n        password: '\u003cpassword\u003e'\n    },\n\n    to: '\u003cto address\u003e'\n}), 'hello');\n\nlogger.info('Hello World');\n```\n\nOr you can use the configure method.\n\n```js\nvar log4js = require('log4js'),\n    logger = log4js.getLogger('hello');\n\nlog4js.configure({\n    appenders: [\n        {\n            type: 'console'\n        },\n\n        {\n            \"type\": \"xmpp\",\n\t\t\t\"category\": \"hello\",\n\n\t\t\t\"client\": {\n\t\t\t\t\"host\": \"talk.google.com\",\n\t\t\t\t\"jid\": \"\u003cusername\u003e\",\n\t\t\t\t\"password\": \"\u003cpassword\u003e\"\n\t\t\t},\n\n\t\t\t\"to\": \"\u003cto address\u003e\"\n        }\n    ]\n});\nlogger.info('Hello World');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikema%2Flog4js-node-xmpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flikema%2Flog4js-node-xmpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikema%2Flog4js-node-xmpp/lists"}