I want to use winston
logger in node
app for log error to file. But winston
not write to file.
var logger = new (winston.Logger)({
transports: [
new (winston.transports.Console)(),
new (winston.transports.File)({ filename: 'somefile.log' })
]
});
logger.error('test');
file somefile.log
is created but empty.