PIAB, logging handler, logging methods parameter value

Topics: Logging Application Block, Policy Injection Application Block
Sep 5, 2007 at 2:54 PM
Is it possible to log specified parameter value that is passed to method which is conforms one of the matching rule?
So for example if i have following method signature:

void SomeMethod(int parameter1, int parameter2)

Is it possible to log only parameter2 value?

Thanks
Sep 5, 2007 at 3:21 PM
Edited Sep 5, 2007 at 4:21 PM
Hi,

AFAIK you can only specify whether you want parameters logged or not; you can't specify which parameters you want to log. Consider that the same handler can be applied to many methods according to the specified matching rules, so providing a fine grained configuration of which parameter to log can be difficult.

Regards,
Fernando
Sep 5, 2007 at 3:38 PM


fsimonazzi wrote:
Hi,

AFAIK you can only specify wether you want parameters logged or not; you can't specify which parameters you want to log. Consider that the same handler can be applied to many methods according to the specified matching rules, so providing a fine grained configuration of which parameter to log can be difficult.

Regards,
Fernando


You right, thanks