-
1. Re: Log for specific package
starksm64 Jan 5, 2006 11:24 AM (in response to mikemoreira)See the following for an example:
http://wiki.jboss.org/wiki/Wiki.jsp?page=EnableClassloaderLogging -
2. Re: Log for specific package
mikemoreira Jan 5, 2006 11:55 AM (in response to mikemoreira)I had checked this article, but in this case I not able to specify witch package I want to do the log. My principal problem is, when I configure the appender, all the DEBUG messages are writting at my app log file.
Even the startup of JBoss is comming to my appfile.
There is anyway to restrict this messages?
That means, I want to write in my App.LOG file only de DEBUG messages called by br.com.myapp.XXXX, any other DEBUG message should be write only at server.log file
Tks -
3. Re: Log for specific package
starksm64 Jan 5, 2006 12:01 PM (in response to mikemoreira)The wiki page shows the org.jboss.mx.loading category msgs and only those msgs going to a ucl.log file. Go over the config again.
-
4. Re: Log for specific package
mikemoreira Jan 5, 2006 1:56 PM (in response to mikemoreira)I´m using this configuration :
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<appender-ref ref="FILE1"/>
So, I expected only DEBUG messages from the package "br.gov.sp.tce.audesp" at "audespAPP.log" file, but when I start the JBoss I´m getting a lot of other DEBUG messages from JBoss, and not only from my package.
This is my entire log4j.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<!-- $Id: log4j.xml,v 1.26.2.2 2005/03/02 14:52:20 tdiesler Exp $ -->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<!-- ============================== -->
<!-- Append messages to the console -->
<!-- ============================== -->
<!-- ================ -->
<!-- Limit categories -->
<!-- ================ -->
<!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
<!-- Limit the org.jgroups category to WARN as its INFO is verbose -->
<!-- Limit apache axis to INFO as its DEBUG is even more verbose -->
<!-- Limit the JSR77 categories -->
<appender-ref ref="FILE1"/>
<!-- ======================= -->
<!-- Setup the Root category -->
<!-- ======================= -->
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
<appender-ref ref="SMTP"/>
<appender-ref ref="FILE1"/>
</log4j:configuration> -
5. Re: Log for specific package
mikemoreira Jan 5, 2006 1:59 PM (in response to mikemoreira)
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<appender-ref ref="FILE1"/>