??? 06/15/04 14:32 Read: times |
#72533 - RE: Error logging for purpose of Maintenance Responding to: ???'s previous message |
Do you think error logging is not justified ?
Error logging is absolutely justified. as an example: a problem exist because a relay has a bad contact that fail for a few seconds once a week. How are you going to find the cause if that is not logged?. The one I 'argue agsinst' is that I have often seen error logging as an excuse not to THOROUGHLY design because "the errors will be caught by the log when we test". A little trick I often use is to have a routine called 'crash' that is implemented whereever there is a possibility of something wrong from outside factors such as a reading from and ADC going crazy because of an analog input being overloaded. This routine may be called from many places, it simply record the return address. By the way, the above remind me, I have seen ever so often designs where the ADC was used full scale i. e. max normal input = max value. That is a BIG mistake. In such a design there is no way to detect an error causing the analog input going wild because of an open or short. Erik |