You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2018/06/25 13:14:00 UTC
[GitHub] itmyhome opened a new issue #338: why ClientLogger.getLog use jar
self log file path
itmyhome opened a new issue #338: why ClientLogger.getLog use jar self log file path
URL: https://github.com/apache/rocketmq/issues/338
hello , RocketMQ-client version 4.2.0
ClientLogger.java add code block line 92 - 99
```
else if (classType.getName().equals("org.apache.logging.slf4j.Log4jLoggerFactory")) {
Class<?> joranConfigurator = Class.forName("org.apache.logging.log4j.core.config.Configurator");
Method initialize = joranConfigurator.getDeclaredMethod("initialize", String.class, String.class);
if (null == logConfigFilePath) {
initialize.invoke(joranConfigurator, "log4j2", log4J2ResourceFile);
} else {
initialize.invoke(joranConfigurator, "log4j2", logConfigFilePath);
}
}
```
Due to Can't load project log4j2.xml, instead of log4j_rocketmq_client.xml
can't print project self log, How to slove it ?
thank you !
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services