add log directory in build