start logs befored adding plugin middlewares