When event logging is enabled, you can manage its functions.
Use sp_addmessage to add a user message, or sp_altermessage to control whether a specific message is logged in both the SAP ASE error log and in the Windows event log.
For the complete syntax for the sp_addmessage and sp_altermessage system procedures, see the Reference Manual: Procedures.
Use configuration parameters to specify whether auditing events are logged. Auditing events pertain to a user’s success, log audit logon success, or failure, log audit logon failure, in logging in to SAP ASE.
Use the xp_logevent extended stored procedure to set up logging of user-defined events in the Windows event log in SAP ASE.