- 配置日志输出文件路径
#日志打印路径
logging.file.path=logs/community.log
logging.level.root=info
logging.level.com.july.community.mapper=debug
logging.file.max-history=30
- 实现打印日志
@Slf4j
class ...{
...
log.error("callback 方法 get github 账户 失败,{0}",githubUser);
}
#日志打印路径
logging.file.path=logs/community.log
logging.level.root=info
logging.level.com.july.community.mapper=debug
logging.file.max-history=30
@Slf4j
class ...{
...
log.error("callback 方法 get github 账户 失败,{0}",githubUser);
}