Updated the logger and error middlewares for Koa.