Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 737 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 737 Bytes

winston-zulip

A winston logger for zulip.

Usage

const winston = require('winston');
require('winston-zulip');


winston.add(winston.transports.Zulip, {
  zulipUsername: '<username>',
  zulipApikey: '<apikey>',
  zulipRealm: '<your domain>',
  zulipTo: 'my awesome collegue',
  zulipSubject: 'admin rights'
});

winston.log('info', 'Hello distributed log files!');

apikey creation

http://yourdomain/#settings

![apikeycreation][http://raw.githubusercontent.com/huneau/winston-zulip/master/zulip-apikey.png]

You can create your own apikey or create a bot and retreive it own apikey. For both of these solution, you can download a file that refer all needed variable.