You can specify whether a user-defined message is logged to the Adaptive Server error log. Adaptive Server lets you make this determination for:
New messages (sp_addmessage)
Existing messages (sp_altermessage)
For more information about these commands and their parameters, see sp_addmessage and sp_altermessage in the Adaptive Server Reference Manual.