logbook-xmpp

0.1.0 • Public • Published

Logbook XMPP Plugin

Quick Usage

npm install --save logbook logbook-xmpp

Disable console and send stderr to everyone in your contact list:

require('logbook').configure({
  console: {
    enabled: false
  },
  xmpp: {
    enabled: true,
    jid: '...@gmail.com',
    password: '...',
  }
});

To prevent too much spam, only stderr is logged by default. This can changed with xmpp.log: true.

Options

to

An array of jid Jabber IDs (Google Accounts in the case of Google Talk). By default it's the string "*", which means everyone in the given accounts contact list. Useful if you create a logbook Jabber account, then you can "subscribe" to it at will.

delay

This is the delay (in milliseconds) before all acculated messages are concatenated and sent. This helps to prevent performance loss by batching synchronous messages.

prefix

This string will be prefixed to every message

machineName

The machines name (hostname on Unix) will be prefixed to every message

Defaults

"xmpp": { "enabled": false, "jid": null, "password": null, "host": "talk.google.com", "port": 5222, "to": "*", "prefix": null, "machineName": false, "delay": 100, "log": false, "err": true }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    0

Package Sidebar

Install

npm i logbook-xmpp

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jpillora