Programming Guide |
Write Web application errors to a log file
void sm_web_log_error(char *message);
message
- The text of the error message.
Web
sm_web_log_error
writes Web application errors to the file specified in theErrorFile
variable in the Web initialization file. This error text is not displayed to the user; the sm_femsg or sm_message_box functions display error messages to application users.
// The following JPL error handler displays a message to
// the user and then writes a message to the error log file.
proc error_def
msg emsg "Error: File not found"
call sm_web_log_error("Unable to find file.")
return