Invention Grant
- Patent Title: Program log record optimization
- Patent Title (中): 程序日志记录优化
-
Application No.: US13653571Application Date: 2012-10-17
-
Publication No.: US08949799B2Publication Date: 2015-02-03
- Inventor: Yang Che , Zhi Da Luo , Ye Xin Wang
- Applicant: International Business Machines Corporation
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Stephen J. Walder, Jr.; Jeffrey S. LaBaw
- Priority: CN201110337895 20111031
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F9/45 ; G06F11/34 ; G06F11/36

Abstract:
The present invention relates to application program logs. In particular, the invention relates to a method and a system in which an original log method of an application program is optimized and newly injected to the application program. According to one aspect of the present invention, there is provided a method for optimizing an application program log record, comprising: identifying an original log method of an application program; separating a character string parameter in the original log method into a constant part and a variable part; establishing a correspondence flag between the constant part and the variable part; constituting an optimized log method by the constant part, the variable part and the correspondence flag; and replacing the original log method with the optimized log method through a code injection. With the above method, the hard disk storage amount of the log record and the IO operation frequency can be reduced.
Public/Granted literature
- US20130111451A1 Program Log Record Optimization Public/Granted day:2013-05-02
Information query