node-xmpp-logger
Logger for node-xmpp.
Install
npm install node-xmpp-logger
Usage
var xmpp = ;var Logger = ; // create an xmpp objectvar component = jid : "mycomponent" password : "secret" host : "127.0.0.1" port : "8888"; // create new instancevar log = xmpp; // add an recipientlog; // allow him to add you to his rosterlog; // set the log levellog; log;log;log;log;log;
Timestamp
node-xmpp-logger uses Moment.js and you can define your
timestamp format by setting the timeFormat
property:
logtimeFormat = "HH:mm:ss"
Possible formats: Moment docs