A message handler can dynamically change messages that are output during execution of a computer application. The messages are stored in a message file. When the application begins execution, it opens the message file, extracts the messages, stores them as message entries in a message table in computer memory and closes the file. Message records and message entries have formatting tags that allow dynamic substitution of desired information without expensive recompiling or version releases.
Legal claims defining the scope of protection, as filed with the USPTO.
1. A system for dynamically providing a message during the execution of a computer application comprising: a computer on which the application executes; a message file containing at least one message record on the computer the message record comprising: a message number field; an error number field; a severity field; a flags field; and a message field; a message handler executing on the computer, the message handler comprising: an initialization process which, when the application is started, opens the message file to obtain the message record, and stores the message record as a message entry in a message table stored in a memory of the computer, and then closes the message file; a get process to get the message entry the message table when a message trap occurs during execution of the application, a format process to generate the message in accordance with the message entry; and an output process to output the message.
2. The system recited in claim 1 , wherein the format process formats a timestamp in accordance with a timestamp format and the output process outputs the formatted timestamp along with the message.
3. The system recited in claim 1 , wherein the output process outputs the message to a device corresponding to a predetermined destination based on a level of the message.
4. The system recited in claim 1 , wherein the message is an error message.
5. The system recited in claim 1 , further comprising an update process to update the message table when a change is made to the message file.
6. The system recited in claim 5 , wherein said update process uses operating system generated signals to initiate the updating of the message table.
7. The system recited in claim 1 , wherein the message field contains one or more formatting tags.
8. A method for dynamically providing a message during execution of a computer application, comprising: storing at least one message record in a message file, the message record comprising: a message number field; an error number field; a severity field; a flags field; and a message field; opening the message file to obtain the message record; storing the message record as a message entry in a message table stored in a computer memory; closing the message file; encountering a message trap; obtaining a message entry from the message table when the message trap is encountered; generating the message in accordance with the obtained message entry; and outputting the message.
9. The method recited in claim 8 , further comprising of updating the message table when a change is made to the message file.
10. The method recited in claim 9 , further comprising using operating system generated signals to initiate updating of the message table.
11. The method recited in claim 8 , further comprising: formatting a timestamp in accordance with a timestamp format; and outputting the timestamp along with the message.
12. The method recited in claim 8 , wherein the message field contains formatting tags.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
June 21, 2000
May 11, 2004
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.