Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 14 - When Things Go Wrong - Part 1 of 3 - Who What When  (Read 5804 times)
Reuben B.
Four Js
Posts: 1116


« on: April 30, 2020, 06:32:57 am »

This next series of Ask-Reuben’s looks at how you can handle errors gracefully whilst at the same time capturing as much information as possible.
 
This first article in the series looks at creating a database table that you populate as the program is started with WHO ran the program, WHAT program was run, WHEN did the program start.  If the program exits normally then update this table row with a program finish time.  If something goes wrong and the program does not exit normally then we can update this table to record that fact that the program has exited gracefully with an exception, or if the program does not exit gracefully with an exception, update this table to record this fact when we know the program is not running anymore.  We will look in future articles at more detail on exiting gracefully with an exception.
 
The information that this database table contains will allow you to administer and maintain your system better.  You know who is running what programs when.  What is the earliest users start in the morning?, what is the latest they finish?, are there programs not in use?,  what are the most frequently used programs etc.
 
When analysing an error, you have more information at your finger tips such as has the error occurred previously but been unreported, what else was running when the error occurred,  when did the error occur.

Read more at https://4js.com/ask-reuben/ig-14/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines