All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.doudou.common.tool.utils.LogHandlerUtils Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
package top.doudou.common.tool.utils;

/**
 * @Description
 * @Author 傻男人 <[email protected]>
 * @Date 2020-09-24 14:53
 * @Version V1.0
 */
public class LogHandlerUtils {

    public static String addNoticeIsFail(StringBuilder log,String errorMsg){
        if(null != errorMsg){
            log.append("     推送是否成功:"+false +"     错误的消息为:"+errorMsg);
        }else {
            log.append("     推送是否成功:"+true);
        }
        return log.toString();
    }

    public static String addNoticeIsFail(StringBuilder log,Exception e){
        if(null != e){
            log.append("     推送是否成功:"+false +"     错误的消息为:"+e.getMessage());
        }else {
            log.append("     推送是否成功:"+true);
        }
        return log.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy