Varying logging depth based on user defined policies
First Claim
1. A method for writing at least a portion of a logging file associated with a thread generated by execution of an application, the logging file including a plurality of pieces of logging information from the application'"'"'s thread, the method comprising:
- choosing a set of logging rules, which logging rules determine the selection of which pieces of information from an application'"'"'s thread will be written to a non-volatile log file;
operating the application on a computer system to generate the application'"'"'s thread;
during operation of the application and generation of the application'"'"'s thread, collecting a first set of pieces of operational information relating to the operation of the application from the application'"'"'s thread;
saving the first set of pieces of operational information to a volatile buffer memory, with the volatile buffer memory being dedicated to collecting logging information from the application'"'"'s thread;
evaluating the first set of pieces of operational information for a pre-determined condition, wherein the pre-determined condition is based on one or more policies, and wherein the one or more policies comprise a rule, a log level, a record before time, a record after time, a logging thread rule, and a first failure data capture (FFDC) rule;
in response to a pre-determined condition occurring, selectively writing, to a non-volatile storage medium, only a first sub-set of the first set of pieces of operational information from the portion of the volatile buffer memory to the logging file, with the selection of the first sub-set from the first set being based upon the one or more policies; and
in response to determining that the volatile buffer memory is full, overwriting the first set of operational information with a second set of operational information to the volatile buffer memory.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques for writing logging files, where the logging files include multiple pieces of logging information. The pieces of logging information are based on operation of a computer system. The writing of the logging information includes the following steps (not necessarily in the following order): (i) choosing a set of logging rules; which logging rules determine the selection of which pieces of operational information relating to the computer system will be written to a non-volatile log file; (ii) operating the computer system; (iii) during operation of the computer system, collecting a first set of pieces of operational information; (iv) saving the first set of pieces of operational information to a volatile buffer memory; and (v) writing only a first sub-set of the first set of pieces of operational information to a first log file.
41 Citations
18 Claims
-
1. A method for writing at least a portion of a logging file associated with a thread generated by execution of an application, the logging file including a plurality of pieces of logging information from the application'"'"'s thread, the method comprising:
-
choosing a set of logging rules, which logging rules determine the selection of which pieces of information from an application'"'"'s thread will be written to a non-volatile log file; operating the application on a computer system to generate the application'"'"'s thread; during operation of the application and generation of the application'"'"'s thread, collecting a first set of pieces of operational information relating to the operation of the application from the application'"'"'s thread; saving the first set of pieces of operational information to a volatile buffer memory, with the volatile buffer memory being dedicated to collecting logging information from the application'"'"'s thread; evaluating the first set of pieces of operational information for a pre-determined condition, wherein the pre-determined condition is based on one or more policies, and wherein the one or more policies comprise a rule, a log level, a record before time, a record after time, a logging thread rule, and a first failure data capture (FFDC) rule; in response to a pre-determined condition occurring, selectively writing, to a non-volatile storage medium, only a first sub-set of the first set of pieces of operational information from the portion of the volatile buffer memory to the logging file, with the selection of the first sub-set from the first set being based upon the one or more policies; and in response to determining that the volatile buffer memory is full, overwriting the first set of operational information with a second set of operational information to the volatile buffer memory. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product for writing at least a portion of a logging file associated with a thread generated by execution of an application, the logging file including a plurality of pieces of logging information from the application'"'"'s thread, the computer program product comprising software stored on a non-transitory software storage device, the software comprising:
-
first program instructions programmed to choose a set of logging rules, which logging rules determine the selection of which pieces of information from an application'"'"'s thread will be written to a non-volatile log file; second program instructions programmed to operate the application on a computer system to generate the application'"'"'s thread; third program instructions programmed to, during operation of the application and generation of the application'"'"'s thread by the second program instructions, collect a first set of pieces of operational information relating to the operation of the application from the application'"'"'s thread; fourth program instructions programmed to save the first set of pieces of operational information to a volatile buffer memory, with the volatile buffer memory being dedicated to collecting logging information from the application'"'"'s thread; fifth program instructions programmed to evaluate the first set of pieces of operational information for a pre-determined condition, wherein the pre-determined condition is based on one or more policies, and wherein the one or more policies comprise a rule, a log level, a record before time, a record after time, a logging thread rule, and a first failure data capture (FFDC) rule in response to a predetermined condition occurring, sixth program instructions programmed to selectively write, to a non-volatile storage medium, only a first sub-set of the first set of pieces of operational information from the portion of the volatile buffer memory the logging file, with the selection of the first sub-set from the first set being based upon the one or more policies; and in response to determining that the volatile buffer memory is full, seventh program instructions programmed to overwrite the first set of operational information with a second set of operational information to the volatile buffer memory. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer system for writing at least a portion of a logging file associated with a thread generated by execution of an application, the logging file including a plurality of pieces of logging information from the application'"'"'s thread, the computer system comprising:
-
a processor(s) set; and a non-transitory software storage device; wherein; the processor set is structured, located, connected and/or programmed to run software stored on the non-transitory software storage device; and the software comprises; first program instructions programmed to choose a set of logging rules, which logging rules determine the selection of which pieces of information from an application'"'"'s thread will be written to a non-volatile log file, second program instructions programmed to operate the application on the computer system to generate the application'"'"'s thread, third program instructions programmed to, during operation of the application and generation of the application'"'"'s thread by the second program instructions, collect a first set of pieces of operational information relating to the operation of the application from the application'"'"'s thread, fourth program instructions programmed to save the first set of pieces of operational information to a volatile buffer memory, with the volatile buffer memory being dedicated to collecting logging information from the application'"'"'s thread; fifth program instructions programmed to evaluate the first set of pieces of operational information for a pre-determined condition, wherein the pre-determined condition is based on one or more policies, and wherein the one or more policies comprise a rule, a log level, a record before time, a record after time, a logging thread rule, and a first failure data capture (FFDC) rule in response to a predetermined condition occurring, sixth program instructions programmed to selectively write, to a non-volatile storage medium, only a first sub-set of the first set of pieces of operational information from the portion of the volatile buffer memory the logging file, with the selection of the first sub-set from the first set being based upon the one or more policies; and in response to determining that the volatile buffer memory is full, seventh program instructions programmed to overwrite the first set of operational information with a second set of operational information to the volatile buffer memory. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification