Hi,

I dont have my own classes in the service units and log4j.xml expects a package 
name for the loggers. My requirement is that I want to enable debug logs not 
for all message flows, but only for message flows in some specific service 
assemblies.

Regards,
Nandini


-----Original Message-----
From: ext Jean-Baptiste Onofré [mailto:[email protected]] 
Sent: Monday, May 03, 2010 5:42 PM
To: [email protected]; Bhat, Nandini (NSN - IN/Bangalore)
Subject: Re: Query regarding logging

Hi,

Not on the service assembly but on the service unit yes.

For example, if in your service units, you use your own classes (for marshaller 
for example), you can simply add an appender/logger in the conf/log4j.xml (I 
guess that you talk about ServiceMix 3.x.x).
Like this you can use log messages in your code and you can log in.
By default, we already provide an appender/logger for ServiceMix classes. So 
basicly, you can switch to debug log level easily (it's taken on the fly, no 
requirement to restart ServiceMix).

In ServiceMix 4, you have advanced features such log management command:
log:display - to display the log
log:display-exceptions - to display only the exceptions
log:set DEBUG - to dynamically set the log level

More over, you can audit the message in transit using a JDBC auditor. The 
purpose isn't to provide log but it can help to debug most of the time.

Regards
JB

 On Mon 03/05/10 13:53, "Bhat, Nandini (NSN - IN/Bangalore)" 
[email protected] wrote:
> Hi,
> 
> I'm a newbie to servicemix. I want to have a facility to enable debug
> logs in servicemix only for a specific service-assembly.
> Is this currently possible in servicemix?
> 
> Regards,
> Nandini
> 
> 
> 

Reply via email to