Note that there are some explanatory texts on larger screens.

plurals
  1. POLogging provided jars by in-project loggers
    primarykey
    data
    text
    <p>I would like to ask you a question about logging provided jars. I have maven application with many dependencies and i need to log it by using logback. I work on jboss 5.1. </p> <p>Almost everything works perfectly fine. I can log all actions from my packets by using logback.xml file and adequate appenders etc. :) There is one problem - I cannot log org.hibernate actions by using logback. It seems to log itself by using log4j in jboss (jboss-log4j.xml configures that). In my pom.xml i have org.hibernate in scope provided - it is provided by jboss naturally.</p> <pre><code>&lt;dependency&gt; &lt;groupId&gt;org.hibernate&lt;/groupId&gt; &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt; &lt;version&gt;3.3.1.GA&lt;/version&gt; &lt;scope&gt;provided&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.hibernate&lt;/groupId&gt; &lt;artifactId&gt;hibernate-annotations&lt;/artifactId&gt; &lt;version&gt;3.4.0.GA&lt;/version&gt; &lt;scope&gt;provided&lt;/scope&gt; &lt;/dependency&gt; </code></pre> <p>Snippet from logback.xml</p> <pre><code>&lt;logger name="org.hibernate" level="TRACE" additivity="false"&gt; &lt;appender-ref ref="SQL_FILE" /&gt; &lt;/logger&gt; </code></pre> <p>When i delete </p> <pre><code>&lt;scope&gt;provided&lt;/scope&gt; </code></pre> <p>from pom.xml it starts to log using logback.xml in project configuration. I would do that, but i have to use provided jars instead of my own.</p> <p>Is there any possibility to log provided jars by using in-project configuration? Or am I doomed and i have to use log4j configuration in jboss directory?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload