c# - AppDomainName customization with Enterprise Library on an ASP.Net MVC App -


i been using microsoft’s enterprise library logging. want able query log table based on appdomainname, not problem on executables log assemblyname appdomainname. however, when comes mvc application, arbitrary name, session id think in form such /lm/w3svc/2/root/appnamehere-1-130227215731585214

does have direction how can configure constant name regardless of session, ie. “appnamehere”

thank you

the logging application block not control appdomain name, , in asp.net running on iis app domain names.

you create custom listener perhaps strip stuff off app domain name or configure arbitrary "app id" use instead of app domain name. we've done latter slab's sinks (that's in latest entlib v6 - can download source , take here).

for tutorial on how build custom listener, see these hands-on labs.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -