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.
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
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.