Sure it works.
I have edited JBoss log4j.xml in order to do it.

But I do not want to edit any JBoss configuration files.

----- Original Message ----- 
From: "George Gastaldi" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, December 23, 2005 4:21 PM
Subject: RE: [servicemix-dev] Log4j + JBI components


hello !
Configure a unique Log4J with different categories and associate each
category with an appender.
That should work

-----Original Message-----
From: Maxim Surov [mailto:[EMAIL PROTECTED]
Sent: Friday, December 23, 2005 8:12 AM
To: [email protected]
Subject: [servicemix-dev] Log4j + JBI components


Hi all,

I am using JBoss + ServiceMix.
Plus, I use log4j to log events.

I use SpringJBIContainer in order to build JBI components.
So, each component is stored in a separate .jar (.zip)

I should log different events from each module in a separate log file.

Such as:

JBIcomponent1.log
JBIcomponent2.log
JBIcomponent3.log

I have no idea of how to use log4j.properties in this case.

Should I embed log4j.properties in each jar(zip) ?
Or should I edit JBoss system log4j.xml ?

Any ideas?

Thanks in advance.
Regards,
Maxim



Reply via email to