0
You can use a library such as
log4net to do the grunt work, all you need to is call the log method at the appropriate times from within your app.
0
Hi all
Thanks John Penn
but what I need is to create users avtivities with in my appliction even if there is power failure so that I will be able to control the control users' activities (user 'xxx' has transacted on ' TIME' , dropped table at 'Time' ...etc)
I can know the user the user logged on from Wimdows account using some code like
System.Security.Principal.WindowsIdentity user =
System.Security.Principal.WindowsIdentity.GetCurrent();
Response.Write(user.Name);
but I need it in my own appliction's user account
how can I write the code in c# for the user logon like the one in windows
I would prefer if u would write some few lines of code of how this will take place.
tanx
0
The FormClosing event of the main form will fire when the user tries to close the form. Here you can write your "user has logged out" information to the application's log.