A logging mechanism needs to be created beforehand, in order to efficiently log errors / other relevant info. A custom implementation of Winston should do the task, more info can be found at [Winston Logger](https://github.com/winstonjs/winston)