我们有一个JavaEE EAR应用程序,该应用程序已部署在 Payara 4.1.2.1 上。此应用程序依赖于:
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.2</version>
</dependency>
正在发生的事情是,在 INFO 日志消息正文中的 DEBUG 日志消息中, server.log 完全增加了我们的应用程序使用的框架和库,例如: org.jose4j.jws , apache.axis 。这是在我们更改 slf4j-log4j12 的版本后开始发生的。
[2018-10-08T08:03:18.712-0300] [Payara 4.1] [INFORMA��ES] [] [] [tid: _ThreadID=75 _ThreadName=http-thread-pool::http-listener-1(2)] [timeMillis: 1538996598712] [levelValue: 800] [[
08:03:18.712 [http-thread-pool::http-listener-1(2)] DEBUG o.jose4j.jwa.AlgorithmFactoryFactory - JWE key management algorithms: [RSA1_5, RSA-OAEP, RSA-OAEP-256, dir, A128KW, A192KW, A256KW, ECDH-ES, ECDH-ES+A128KW, ECDH-ES+A192KW, ECDH-ES+A256KW, PBES2-HS256+A128KW, PBES2-HS384+A192KW, PBES2-HS512+A256KW, A128GCMKW, A192GCMKW, A256GCMKW]
]]
[2018-10-08T08:03:18.720-0300] [Payara 4.1] [INFORMA��ES] [] [] [tid: _ThreadID=75 _ThreadName=http-thread-pool::http-listener-1(2)] [timeMillis: 1538996598720] [levelValue: 800] [[
08:03:18.720 [http-thread-pool::http-listener-1(2)] DEBUG o.j.j.AlgorithmFactory->ContentEncryptionAlgorithm - org.jose4j.jwe.AesCbcHmacSha2ContentEncryptionAlgorithm$Aes128CbcHmacSha256@6f7dada6 registered for enc algorithm A128CBC-HS256
]]
[2018-10-08T08:03:18.722-0300] [Payara 4.1] [INFORMA��ES] [] [] [tid: _ThreadID=75 _ThreadName=http-thread-pool::http-listener-1(2)] [timeMillis: 1538996598722] [levelValue: 800] [[
08:03:18.722 [http-thread-pool::http-listener-1(2)] DEBUG o.j.j.AlgorithmFactory->ContentEncryptionAlgorithm - org.jose4j.jwe.AesCbcHmacSha2ContentEncryptionAlgorithm$Aes192CbcHmacSha384@13aa41bd registered for enc algorithm A192CBC-HS384
]]
[2018-10-08T08:03:18.725-0300] [Payara 4.1] [INFORMA��ES] [] [] [tid: _ThreadID=75 _ThreadName=http-thread-pool::http-listener-1(2)] [timeMillis: 1538996598725] [levelValue: 800] [[
08:03:18.725 [http-thread-pool::http-listener-1(2)] DEBUG o.j.j.AlgorithmFactory->ContentEncryptionAlgorithm - org.jose4j.jwe.AesCbcHmacSha2ContentEncryptionAlgorithm$Aes256CbcHmacSha512@52ef3d54 registered for enc algorithm A256CBC-HS512
]]
[2018-10-08T08:03:18.730-0300] [Payara 4.1] [INFORMA��ES] [] [] [tid: _ThreadID=75 _ThreadName=http-thread-pool::http-listener-1(2)] [timeMillis: 1538996598730] [levelValue: 800] [[
08:03:18.730 [http-thread-pool::http-listener-1(2)] DEBUG o.j.j.AlgorithmFactory->ContentEncryptionAlgorithm - org.jose4j.jwe.AesGcmContentEncryptionAlgorithm$Aes128Gcm@66fbe55 registered for enc algorithm A128GCM
]]
[2018-10-08T08:03:18.733-0300] [Payara 4.1] [INFORMA��ES] [] [] [tid: _ThreadID=75 _ThreadName=http-thread-pool::http-listener-1(2)] [timeMillis: 1538996598733] [levelValue: 800] [[
08:03:18.732 [http-thread-pool::http-listener-1(2)] DEBUG o.j.j.AlgorithmFactory->ContentEncryptionAlgorithm - org.jose4j.jwe.AesGcmContentEncryptionAlgorithm$Aes192Gcm@18560c6b registered for enc algorithm A192GCM
]]
我们已经尝试在Payara管理界面中更改日志级别 Logger设置-> 日志级别中的某些内容,但这些日志仍在记录中。
任何建议都可以。