update ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java.

将控制器基类的日志设置成 this.getClass(),这样在日志里就可以记录是在哪个控制器记录的
pull/268/head
phper08 2021-02-26 14:48:54 +08:00 committed by Gitee
parent fd8caa01e9
commit 8a78937164
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ import com.ruoyi.common.utils.sql.SqlUtil;
*/
public class BaseController
{
protected final Logger logger = LoggerFactory.getLogger(BaseController.class);
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
/**
* Date