gpt4 book ai didi

java - 如何关闭(禁用)jdk.event.security 日志?

转载 作者:行者123 更新时间:2023-12-01 17:59:03 24 4
gpt4 key购买 nike

我使用 Spring Boot 应用程序,jdk 版本是 openjdk 11。调试级别在属性文件中处于 Activity 状态。我不知道为什么显示 jdk.event.security 日志。我想关闭该日志。

 DEBUG 11007 --- [main] jdk.event.security: X509Certificate: Alg:SHA1withRSA, Serial:23456, Subject:CN=GeoTrust Global CA, O=GeoTrust Inc., C=US, Issuer:CN=GeoTrust Global CA, O=GeoTrust Inc., C=US, Key type:RSA, Length:2048, Cert Id:-2028617374, Valid from:5/21/02, 9:00 AM, Valid until:5/21/22, 8:00 AM
DEBUG 11007 --- [main] jdk.event.security: X509Certificate: Alg:SHA1withRSA, Serial:bb401c43f55e4fb0, Subject:CN=SwissSign Gold CA - G2, O=SwissSign AG, C=CH, Issuer:CN=SwissSign Gold CA - G2, O=SwissSign AG, C=CH, Key type:RSA, Length:4096, Cert Id:1516221943, Valid from:10/25/06, 1:30 PM, Valid until:10/25/36, 12:30 PM
......

DEBUG 11007 --- [main] jdk.event.security: X509Certificate: Alg:SHA256withRSA, Serial:4a538c28, Subject:CN=Entrust Root Certification Authority - G2, OU="(c) 2009 Entrust, Inc. - for authorized use only", OU=See www.entrust.net/legal-terms, O="Entrust, Inc.", C=US, Issuer:CN=Entrust Root Certification Authority - G2, OU="(c) 2009 Entrust, Inc. - for authorized use only", OU=See www.entrust.net/legal-terms, O="Entrust, Inc.", C=US, Key type:RSA, Length:2048, Cert Id:1936920337, Valid from:7/7/09, 10:25 PM, Valid until:12/7/30, 9:55 PM

虚拟机选项:

enter image description here

最佳答案

我添加了这一行<logger name="jdk.event.security" level="WARN"/>在 logback-spring.xml 文件中。它只会向我显示警告消息。

关于java - 如何关闭(禁用)jdk.event.security 日志?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60665768/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com