var winston = require('winston');
var logger = winston.createLogger({
transports: [
new winston.transports.File({
level: "info",
filename: "logs/payfast.log",
maxsize: 100000,
maxFiles: 10
})
]
});
logger.log('info', 'Log com winston');