sematext / winston-logsene

Winston Transport for Logsene
http://sematext.com/logsene
Apache License 2.0
13 stars 6 forks source link

readme is out of date #14

Closed samuelt1 closed 6 years ago

samuelt1 commented 6 years ago

if you copy and paste the readme it does not work, and the documentation on your site is out of date too...

when you first sign up it says to write

Use
To use the Logsene transport in winston, you simply need to require it:

var logger = require('winston');
var logsene = require('winston-logsene');
Pass an instance of the Logsene transport to the new winston logger:

logger.add(logsene, {
  token: 'my-token',
});
Add logging code:

logger.debug('Hello, Logsene!');
logger.info('Hello, Logsene!');
logger.warn('Hello, Logsene!');
logger.error('Hello, Logsene!');

that gives errors unless you use winston@2.4.3 the readme on this page gives more info but still does not work. without downgrading winston.