@@ -0,0 +1,730 @@
+package org.zstack.utils;%0D%0A%0D%0Aimport org.apache.commons.io.FileUtils;%0D%0Aimport org.zstack.utils.logging.CLogger;%0D%0Aimport org.zstack.utils.path.PathUtil;%0D%0A%0D%0Aimport java.io.File;%0D%0Aimport java.io.IOException;%0D%0A%0D%0A/**%0D%0A * Created by frank on 2/17/2016.%0D%0A */%0D%0Apublic class BootErrorLog %7B%0D%0A    private static final CLogger logger = Utils.getLogger(BootErrorLog.class);%0D%0A    private String bootErrorPath = PathUtil.join(PathUtil.getZStackHomeFolder(), %22bootError.log%22);%0D%0A%0D%0A    public void write(String log) %7B%0D%0A        try %7B%0D%0A            FileUtils.writeStringToFile(new File(bootErrorPath), log);%0D%0A        %7D catch (IOException e) %7B%0D%0A            logger.warn(String.format(%22unable to write error to %25s%22, bootErrorPath));%0D%0A        %7D%0D%0A    %7D%0D%0A%7D%0D%0A

add BootErrorLog.java