Answer the question
In order to leave comments, you need to log in
Why does winston output undefined?
let winston = require("winston");
let logger = winston.createLogger({
format: {
transform(info, opts) {
info.message = "!" + info.message + "!";
return info;
}
},
transports: [
new winston.transports.Console()
]
});
logger.info("Something");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question