[ https://issues.apache.org/jira/browse/ROCKETMQ-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16069587#comment-16069587 ]
ASF GitHub Bot commented on ROCKETMQ-224: ----------------------------------------- Github user lindzh commented on a diff in the pull request: https://github.com/apache/incubator-rocketmq/pull/120#discussion_r124972804 --- Diff: client/src/test/java/org/apache/rocketmq/client/log/ClientLogTest.java --- @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.rocketmq.client.log; + +import org.junit.Test; + +import java.util.Date; + +public class ClientLogTest { + + @Test + public void testLog4j2() { + ClientLogger.getLog().info("logg4j test " + new Date()); --- End diff -- Assert has been added. > 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)