日志默认实现
This commit is contained in:
parent
b2bd4cdb10
commit
38c8889c52
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.nflg.mobilebroken.starter.service.impl;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSON;
|
||||||
|
import com.nflg.mobilebroken.repository.entity.TBaseRequestLog;
|
||||||
|
import com.nflg.mobilebroken.repository.entity.TBaseRequestLogDetail;
|
||||||
|
import com.nflg.mobilebroken.starter.service.IRequestLog;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
@Service
|
||||||
|
public class DefaultRequestLogService implements IRequestLog {
|
||||||
|
|
||||||
|
private static final Logger logger = LoggerFactory.getLogger(DefaultRequestLogService.class);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void addLog(TBaseRequestLog log, TBaseRequestLogDetail logDetail) {
|
||||||
|
logger.info(JSON.toJSONString(log));
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue