как отключить (отключить) логи jdk.event.security? - PullRequest
0 голосов
/ 13 марта 2020

Я использую приложение весенней загрузки, версия jdk - openjdk 11. Уровень отладки активен в файле свойств. Я не знаю, зачем показывать логи 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

Опции VM:

enter image description here

1 Ответ

0 голосов
/ 16 марта 2020

Я добавил эту строку <logger name="jdk.event.security" level="WARN"/> в файл logback-spring. xml. это просто покажет мне предупреждающее сообщение.

...