How it works...
First, in WebModuleU.pas, WebModuleBeforeDispatch, WebModuleAfterDispatch, and WebModuleException events were implemented. In the first two events, a log (with DEBUG level) was been inserted that allows tracking the requests before and after their execution: in this case, the log is written to file and through the SysLog. In WebModuleException, a log with an ERROR level has been inserted, so when an exception occurs, in addition to writing on the previously viewed appenders, you also send an email with the exception message (its configuration is written in LoggerProConfig.pas).
To allow raising an exception (in an easy way), the CheckNoEmpty method has been added, which checks that the FIRST_NAME, LAST_NAME, and EMAIL fields ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access