Guest
Welcome login


TIBCOmmunity > Products > ActiveMatrix SOA > Conversations
Home   Members Communities
Conversations () Resources () Blogs ()

ActiveMatrix SOA

Up to Conversations in ActiveMatrix SOA

This Question is Possibly Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)

Redirecting my Service's log4j logging

Created on: Mar 15, 2010 9:29 AM

I want each service to able to direct its log4j logging to separate log files. I've tried a custom log4j.properties file in the root of the service assembly jar, as well as a custom META-INF/services/org.apache.commons.log.LogFactory (on the theory that AMX may be using Commons Logging rather than direct log4j), but neither sends my service's logging where I've configured.

 

Is there any mechanism to accomplish this?

Click to view Setumadhav's profile Aficionado 183 posts since
Jul 11, 2008
1. Mar 15, 2010 11:55 AM in response to: Doug B
Re: Redirecting my Service's log4j logging

Why did you do that :-)?

 

You can use the common logging provision that AMX offers. All you need to do is to make sure each java component goes into a different service unit and then at deploy time you should configure the file appender for each service unit!

 

Simpler than it sounds, really.

Click to view Setumadhav's profile Aficionado 183 posts since
Jul 11, 2008
3. Mar 15, 2010 11:59 PM in response to: Doug B
Re: Redirecting my Service's log4j logging

At the outset, this is the documentation section that may benefit:

 

In the guide under: amx\2.X\\doc\amf\pdf\tib_amx_administration, there is a pdf. In that PDF look at Chapter 10. There is a section on "Working with Logging Configurations".

 

Now in that section you will learn how to enable Service Unit logging.

 

On the other hand, at design time ensure that you have one component per service unit to achieve what you are trying to do. Look at: \amx\2.X\doc\amf\pdf\tib_amx_composite_editor_users_guide and under that there is a PDF. In that PDF look at Chapter 6 on how to configure Service Units in a Service Assembly.

 

HTH,


Setu

Click to view Setumadhav's profile Aficionado 183 posts since
Jul 11, 2008
5. Mar 17, 2010 7:05 AM in response to: Doug B
Re: Redirecting my Service's log4j logging

Make sure all the hand edits are reset so that the redirection and the appenders that the software allows you to setup work fine.

 

Setu



More Like This

  • Retrieving data ...