PortSight Secure Access Documentation

Auditing User Activities in Your WinForms Applications

If you need to log user activities in your WinForms applications you can use the ARWSClient.Log() method that writes an entry to the Secure Access auditing log.


The operations such as successful or unsuccessful login and logout are logged automatically if it is configured in the catalog settings, in the "Store logon attempts in auditing log" parameter.


Please see Authentication and Authorization in WinForms applications - a Step-by-Step Guide for details about how to secure your application with Secure Access. Then you simply call the method like in the following example:


                SAWSClient.Log("User used the calculator.", "CALC_USED", "Calculator")