Add logging to build