Track user with log4net for a website

Posted by Xstahef on Stack Overflow See other posts from Stack Overflow or by Xstahef
Published on 2010-06-09T16:02:16Z Indexed on 2010/06/09 16:12 UTC
Read the original article Hit count: 166

Filed under:
|

Hi,

I am searching for the best way for track user on a web site based on asp.net.
We are using log4net to log some business actions (enter on this page, click on button, etc.). But for multiple users, log file cannot be read easily.

So I need add a property 'UserName' on the config file like this :

 <conversionPattern value="%date [%thread] - %property{UserName} - %-5level  - %logger - %message%newline"/>

Do you hae any idea about the way to set 'UserName' ?

thanks for your help

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about log4net