<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I think you just may need to configure slf4j correctly. By default
    it does simply not log.<br>
    <br>
    If you use maven then you need the following dependencies to use
    log4j as a backend for slf4j:<br>
    <br>
        <dependency><br>
          <groupId>org.slf4j</groupId><br>
          <artifactId>slf4j-log4j12</artifactId><br>
          <version>1.6.1</version><br>
        </dependency><br>
        <dependency><br>
          <groupId>log4j</groupId> <br>
          <artifactId>log4j</artifactId> <br>
          <version>1.2.16</version> <br>
        </dependency><br>
    <br>
    Christian<br>
    <br>
    <br>
    Am 12.04.2012 11:11, schrieb tommmmmm:
    <blockquote
cite="mid:CA+V2woiJ=7QJ63eNSJN4pWJ8=esqk=qBLf-D0m4GqDq83obTSQ@mail.gmail.com"
      type="cite"><span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I
        am using Selenium and HttpClient 4.x (from Apache).</span><br
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
      <br
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
      <span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">At
        some point in time I decided to start using log4j to log</span><br
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
      <span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">HttpClient's
        debug output. However I got no output at all. After a</span><br
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
      <span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">total
        of 28hours of pure work and 70+ messages at 4 different places</span><br
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
      <span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">(mailing
        groups and forums) and around 20 different (yet not working)</span><br
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
      <span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">ideas
        on how to set up log4j it came down to this:</span>
      <div><span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
        </span></div>
      <div><span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">When
          I remove selenium-standalone-2.20-0.jar from the classpath the</span><br
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
        <span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">logging
          features for HttpClient suddenly start to work. Furthermore -</span><br
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
        <span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">they
          work off the bat, without any additional tweaking.</span></div>
      <div><span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
        </span></div>
      <div><span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">After
          digging deeper it was revealed that
          selenium-standalone-2.20.0.jar is using slf4j</span></div>
      <div><span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">and
          slf4j is rendering both log4j and commons-logging useless. </span></div>
      <div><span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
        </span></div>
      <div><span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Since
          selenium is distributed as a single jar + their mailing list
          is silent about the case I thought I would ask here:</span></div>
      <div><span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
        </span></div>
      <div><span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">How
          can I render </span><font face="arial, sans-serif">slf4j
          useless/gone so I can keep using both HttpClient and Selenium?</font></div>
      <div><span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
        </span></div>
      <div><span
style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
        </span></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
slf4j-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:slf4j-user@qos.ch">slf4j-user@qos.ch</a>
<a class="moz-txt-link-freetext" href="http://mailman.qos.ch/mailman/listinfo/slf4j-user">http://mailman.qos.ch/mailman/listinfo/slf4j-user</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Christian Schneider
<a class="moz-txt-link-freetext" href="http://www.liquid-reality.de">http://www.liquid-reality.de</a>

Open Source Architect
Talend Application Integration Division <a class="moz-txt-link-freetext" href="http://www.talend.com">http://www.talend.com</a> </pre>
  </body>
</html>