¡@

Home 

c# Programming Glossary: mdc

How do you log the machine name via log4net?

http://stackoverflow.com/questions/162810/how-do-you-log-the-machine-name-via-log4net

Capture username with log4net

http://stackoverflow.com/questions/4813242/capture-username-with-log4net

context.User null context.User.Identity.IsAuthenticated MDC.Set user HttpContext.Current.User.Identity.Name The code seems.. to work reliably in all cases I believe I saw a note that MDC is no longer a recommended feature to use but I wasn't able.. alternatives that are recommended. Note I find it odd that MDC is set with an account name but never cleared if no user is..