Thanks
I was looked for this on log4j web but not found all I need.

so now I have 2 section in log4j.xml:
<appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
<param name="File" value="${jboss.server.home.dir}/log/server.out.log"/>
<param name="Append" value="false"/>
<param name="MaxFileSize" value="500KB"/>
<param name="MaxBackupIndex" value="1"/>
<param name="Target" value="System.out"/>
<param name="Threshold" value="INFO"/>
...
</appender>


and

<appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
<param name="File" value="${jboss.server.home.dir}/log/server.err.log"/>
<param name="Append" value="false"/>
<param name="MaxFileSize" value="500KB"/>
<param name="MaxBackupIndex" value="1"/>
<param name="Target" value="System.err"/>
<param name="Threshold" value="ERROR"/>


Now, there is no debub messages in log, but INFO and ERROR are in the same log, called server.out.log

Where is the waz to write it separatelly?

Thanks, Jiri

Ricardo Coutinho wrote:

Add <param name="Threshold" value="INFO"/> to the appenders in the log4j.xml file

> Ricardo Coutinho
> Software Engineer
> ____________________________________________
> Odyssey Asset Management Systems S.A.
Espace Kirchberg-Eolis
> 26-28, rue Edward Steichen
L-2540 Luxembourg-Kirchberg
> Direct Line:+352 42 60 80 4425
> fax: +352 42 91 92
> http://www.odyssey-group.com


-----Original Message----- From: Jiri Chaloupka [mailto:[EMAIL PROTECTED] Sent: 30 September 2003 09:55 To: [EMAIL PROTECTED] Subject: [JBoss-user] jboss and log4j


Hallo, how I can dissable debug log output in log4j on jboss?

in log4j I have:
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/";
debug="false">
...
but in log I have:
2003-09-30 09:31:38,640 DEBUG [org.jboss.logging.Log4jService] Installed
System.out adapter
2003-09-30 09:31:38,640 DEBUG [org.jboss.logging.Log4jService] Installed
System.err adapter
2003-09-30 09:35:55,640 DEBUG
[org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover
notifying pools, interval: 450000
2003-09-30 09:39:04,421 DEBUG [org.apache.struts.util.RequestUtils] Get
module name for path /Index.do
2003-09-30 09:39:04,453 DEBUG [org.apache.struts.util.RequestUtils]
Module name found: default
2003-09-30 09:39:04,453 INFO
[org.apache.struts.tiles.TilesRequestProcessor] Tiles definition factory
found for request processor ''.
2003-09-30 09:39:04,468 DEBUG
[org.apache.struts.action.RequestProcessor] Processing a 'GET' for path
'/Index'
...

What is the way to disable debug output?

And next, how I can log into diferent files? for example,
System.out into out.log, System.err into err.log, or better, for
application on server.cz/app1 into out.app1.log and err.app1.log etc.?

Thanks for help,
Jiri



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
__________________________________________________________________________


? This email and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of the individual or entity to which they are addressed.
? Any unauthorized copying, disclosure, or distribution of the material within
this email is strictly forbidden.
? Any views or opinions presented within this e-mail are solely those of the
author and do not necessarily represent those of Odyssey Asset Management
Systems SA unless otherwise specifically stated.
? An electronic message is not binding on its sender. Any message referring to
a binding engagement must be confirmed in writing and duly signed.
? If you have received this email in error, please notify the sender immediately
and delete the original.






-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to