在日食日志记录中屏蔽敏感信息

时间:2021-07-23 11:23:56

标签: jpa eclipselink

我在 JPA eclipselink 中使用以下日志属性:

properties.put("eclipselink.logging.level.sql", "FINE");
properties.put("eclipselink.logging.parameters", "true");

这样,我就可以获取日志,例如:

[EL Fine]: sql: 2021-07-23 15:44:48.673--ServerSession(2100961961)--Connection(1397381784)--SELECT EID, DEG, ENAME, SALARY FROM EMPLOYEE

无论如何(配置/库)是否可以屏蔽上面记录的 sql 命令中的列名等信息?

0 个答案:

没有答案