LogFeignDefault.java 840 Bytes
package com.yanzuoguang.log;

import com.yanzuoguang.util.base.CollectionString;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 日志默认处理服务
 *
 * @author 颜佐光
 */
@Component
public class LogFeignDefault implements LogFeignBase {
    /**
     * 保存日志对象
     *
     * @param log 需要保存的日志对象
     */
    @Override
    public void save(LogInfoVo log) {
    }

    @Override
    public void notifyNotHandle(List<LogInfoVo> notHandles) {
    }

    @Override
    public void notifyTodayCount(LogCountResult todayResult) {
        // 打印日志
        String tag = todayResult.getTodayTime() + "执行次数:";
        String collectionString = CollectionString.getCollectionString(tag, todayResult.getList());
        System.out.println(collectionString);
    }
}