top.doudou.common.tool.utils.LogHandlerUtils Maven / Gradle / Ivy
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();
}
}