title: How to make Jetty print logs
body: <p>My project runs on Wicket+Spring+JPA/Hibernate. When I run it using the command:</p>
  
  <blockquote>
    <p><code>mvn jetty:run</code></p>
  </blockquote>
  
  <p>I'd like jetty to print logs I make in the code. I have for example the following DAO implemented:</p>
  
  <pre><code>@Repository(value = "isinDao")
  public class IsinDaoJpa implements IsinDao {
  
      @PersistenceContext
      private EntityManager em;
  
      private static Logger logger = LoggerFactory.getLogger(IsinDaoJpa.class);
  
      public Isin findById(Long id) {
          return em.find(Isin.class, id);
      }
  
      public List findAll() {
          Query query = em.createQuery("select e from Isin e");
          logger.info("DAO: All ISINs selected");
          return query.getResultList();
      }
  }
  </code></pre>
  
  <p>How do I make Jetty print this information real-time into the command line window?</p>
  
  <p>In pom.xml, I have the following dependencies:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
      &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
      &lt;version&gt;1.4.2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;log4j&lt;/groupId&gt;
      &lt;artifactId&gt;log4j&lt;/artifactId&gt;
      &lt;version&gt;1.2.14&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>