[ https://issues.apache.org/jira/browse/ROCKETMQ-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16108612#comment-16108612 ]
ASF GitHub Bot commented on ROCKETMQ-224: ----------------------------------------- Github user vsair commented on a diff in the pull request: https://github.com/apache/incubator-rocketmq/pull/120#discussion_r130556323 --- Diff: client/src/main/java/org/apache/rocketmq/client/log/ClientLogger.java --- @@ -99,7 +111,12 @@ private static Logger createLogger(final String loggerName) { } public static Logger getLog() { - return log; + if (log == null) { --- End diff -- why not modify the init method? > Client log4j2 logging > --------------------- > > Key: ROCKETMQ-224 > URL: https://issues.apache.org/jira/browse/ROCKETMQ-224 > Project: Apache RocketMQ > Issue Type: New Feature > Components: rocketmq-client > Affects Versions: 4.1.0-incubating > Environment: Jdk 1.7 > Reporter: lindzh > Assignee: Xiaorui Wang > Fix For: 4.2.0-incubating > > > When using RocketMQ client,we can only using logback or log4j for logging. If > we using log4j2,there is no client log. -- This message was sent by Atlassian JIRA (v6.4.14#64029)