improve logging. direct most logging to 'dev' log and improve output to 'prod' log.