// You can specify the path in a filename (just make sure it is a valid one) const options = { filename: '../logs/combined.log' } new transports.File(options)