I am using winston to log errors, on production it logs to file, on development it logs to console. There are other logging transport I have setup i.e.
winston
console