Socket
Book a DemoInstallSign in
Socket

logbook-xmpp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logbook-xmpp

Log to XMPP with Logbook

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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 }

Keywords

logbookplugin

FAQs

Package last updated on 28 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts