Claus Ibsen created AMQ-4901:
--------------------------------

             Summary: The examples/swissarmy should setup slf4j/log4j when 
running
                 Key: AMQ-4901
                 URL: https://issues.apache.org/jira/browse/AMQ-4901
             Project: ActiveMQ
          Issue Type: Improvement
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
            Priority: Trivial
             Fix For: 5.10.0


So when you run this example the slfj4 doesnt complain and you can configure 
log4j.properties to have logging levels you want

davsclaus:/opt/apache-activemq-5.10-SNAPSHOT/examples/openwire/swissarmy$ ant 
consumer
Buildfile: 
/opt/apache-activemq-5.10-SNAPSHOT/examples/openwire/swissarmy/build.xml

init:

compile:

consumer:
     [echo] Running consumer against server at $url = tcp://localhost:61616 for 
subject $subject = TEST.FOO
     [java] Connecting to URL: tcp://localhost:61616 (:)
     [java] Consuming queue: TEST.FOO
     [java] Using a non-durable subscription
     [java] Running 1 parallel threads
     [java] log4j:WARN No appenders could be found for logger 
(org.apache.activemq.transport.WireFormatNegotiator).
     [java] log4j:WARN Please initialize the log4j system properly.
     [java] log4j:WARN See 
http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
     [java] [Thread-1] We are about to wait until we consume: 2000 message(s) 
then we will shutdown



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to