I'm modifying legacy asp.net project. I want include transparent logging for some namespaces, classes and methods.
I use EntLib. Can I configured Police Injection Settings for transparent logging my app? What I must do for logging all methods in specified namespace?
It' s part of my web.config.
<policyInjection>
<policies>
<add name="Policy">
<matchingRules>
<add type="Microsoft.Practices.EnterpriseLibrary.PolicyInjection.MatchingRules.NamespaceMatchingRule, Microsoft.Practices.EnterpriseLibrary.PolicyInjection, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
name="Namespace Matching Rule">
<matches>
<add match="MyNamespace.*" ignoreCase="true" />
</matches>
</add>
</matchingRules>
<handlers>
<add type="Microsoft.Practices.EnterpriseLibrary.Logging.PolicyInjection.LogCallHandler, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
beforeMessage="+++AOP " afterMessage=" AOP+++" name="Logging Call Handler">
<categories>
<add name="General" />
</categories>
</add>
</handlers>
</add>
</policies>