I'm trying to get Winston to pretty print to the console, so I stuck this in a file and ran it with node:
var winston = require('winston');
winston.cli();
winston.data({
a: "test",
of: "many",
properties: {
like: "this"
}
});
winston.data('data', {
a: "test",
of: "many",
properties: {
like: "this"
}
});
The terminal spit back the following (not exactly pretty) messages:
data: a=test, of=many, like=this
data: data a=test, of=many, like=this
I'm following the instructions on the Winston Readme ("Using winston in a CLI tool"). Am I misreading something? Missing a setting somewhere?