Originally posted by Rich Durkee
I have looked at many tcl programs on the old and new CloverTech web site and in my shop. It seems that there are either many standards or no standards when it comes to the "echos" or "puts" statements and the data displayed in the process logs, because it looks like each programmer does it differently.
As I look through our logs I see many different formats of log entries from programs. Obviously we do not have a very good standard.
Having one would probably make the logs smaller and more readable and easier to find which program put the entry into the log.
One program I saw concatenated the program name and the connection name followed by the information. That seems like a good idea. What other information should be in a log entry. It seems like the time would be good, since I don't see that in the log very often.
Should the program log an entry at program start time and program end time? A log entry should probably be displayed when a message is killed or data in the message is changed or other critical things are done. Unfortunately I have seen a lot of testing/debugging log entries that are in Production that should have been removed after testing and prior the program being moved to production. How do other handle that?
I like standards but have come become an Engine Programmer several years after our system was installed and the previous Programmer had no standards, which is why we have the mish-mash we have today. I would like to slowly correct the situation, but would like to have a plan before I begin.
Thanks for reading. Comments?
Rich Durkee
Genesys Regional Medical Center
Grand Blanc, Michigan