server now write logs to file using winston