json error responses for api
use winston for logging, request log middleware
logging options in config sample