You can specify whether a user-defined message is logged to the SAP ASE
error log as well as to the Windows event log.
SAP ASE lets you make this determination for:
New messages (sp_addmessage)
Existing messages (sp_altermessage)
See sp_addmessage and sp_altermessage in the
Reference Manual: Procedures.
New Messages
Include the with_log option in sp_addmessage when you add a new user-defined message to sysusermessages. This parameter sets the SAP ASE to log the message each time the message appears.
Existing Messages
Include the with_log option in sp_altermessage to change an existing user-defined message.