log to build dir