日志记录中的 Hazelcast 异常
Hazelcast exception in logging
使用:
淡褐色 3.6.1
Log4j 2.5
slf4j 1.7.13
使用 Log4j 的 Hazelcast 客户端无法记录成员资格'printout'
Member [localhost]:19325
此客户端正在以编程方式初始化(不是通过 spring)。
相反,日志记录基础设施抛出异常
2016-03-09 15:49:34,195 hz.client_0_qv-core.event-4 ERROR An exception occurred processing Appender STDOUT java.lang.IllegalArgumentException: can't parse argument number:
Member [localhost]:19325
at java.text.MessageFormat.makeFormat(MessageFormat.java:1429)
at java.text.MessageFormat.applyPattern(MessageFormat.java:479)
at java.text.MessageFormat.<init>(MessageFormat.java:362)
at java.text.MessageFormat.format(MessageFormat.java:840)
at org.apache.logging.log4j.message.MessageFormatMessage.formatMessage(MessageFormatMessage.java:94)
错误与集群成员数无关。
服务器能够使用相同的代码库很好地打印消息。
如果需要,我可以提供完整的堆栈跟踪。
您是否尝试过将 Hazelcast 日志记录直接绑定到 log4j?
http://docs.hazelcast.org/docs/3.6/manual/html-single/index.html#logging-configuration
使用系统 属性: -Dhazelcast.logging.type 定义日志配置解决了这个问题。
使用: 淡褐色 3.6.1 Log4j 2.5 slf4j 1.7.13
使用 Log4j 的 Hazelcast 客户端无法记录成员资格'printout'
Member [localhost]:19325
此客户端正在以编程方式初始化(不是通过 spring)。
相反,日志记录基础设施抛出异常
2016-03-09 15:49:34,195 hz.client_0_qv-core.event-4 ERROR An exception occurred processing Appender STDOUT java.lang.IllegalArgumentException: can't parse argument number:
Member [localhost]:19325
at java.text.MessageFormat.makeFormat(MessageFormat.java:1429)
at java.text.MessageFormat.applyPattern(MessageFormat.java:479)
at java.text.MessageFormat.<init>(MessageFormat.java:362)
at java.text.MessageFormat.format(MessageFormat.java:840)
at org.apache.logging.log4j.message.MessageFormatMessage.formatMessage(MessageFormatMessage.java:94)
错误与集群成员数无关。
服务器能够使用相同的代码库很好地打印消息。 如果需要,我可以提供完整的堆栈跟踪。
您是否尝试过将 Hazelcast 日志记录直接绑定到 log4j? http://docs.hazelcast.org/docs/3.6/manual/html-single/index.html#logging-configuration
使用系统 属性: -Dhazelcast.logging.type 定义日志配置解决了这个问题。