Search code examples
winston

Why does winston.log('doesn't print anything?')


I don't know if it's just me, but

var winston = require('winston');
winston.log('This wont print');
winston.info('But this will.');

only prints the second line.

Why doesn't it print the log? I just want to print log, with a level: log

winston.log('log', 'This wont print');

Is this not possible or am I doing something wrong?


Solution

  • Well, turns out it is impossible because log is not a log level, but info is.

    Thanks to @elmigranto in #node.js for pointing it out.