logHandler shared by build and log