Programming Guide



sm_web_log_error

Write Web application errors to a log file

void sm_web_log_error(char *message);

message
The text of the error message.

Environment

Web

Description

sm_web_log_error writes Web application errors to the file specified in the ErrorFile 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.

Example

// 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