Selecting a Logging Method via Metadata
First Claim
1. A method comprising:
- receiving data and a specification of a default logging method from an application;
collecting metadata, wherein the metadata describes the data;
determining whether the collecting has collected more than a threshold amount of the metadata;
if the determining is false, saving the data via the default logging method; and
if the determining is true, selecting a selected logging method from among a plurality of logging methods based on the metadata, and saving the data via the selected logging method.
1 Assignment
0 Petitions
Accused Products
Abstract
In an embodiment, data and a specification of a default logging method are received from an application. If more than a threshold amount of metadata has been collected, then a logging method is selected based on the metadata and rules, and the data is saved via the selected logging method; otherwise, the data is saved via the default logging method. In various embodiments, the metadata describes the data, the performance of the computer system in which the saving is performed, the resources of the computer, or a reason for saving the data. A rule identifies a field in the metadata, a field threshold, and a rule logging method. If a value in the field in the metadata satisfies the field threshold in the rule, then the selected logging method is the rule logging method; otherwise, a different rule is chosen. In this way, an appropriate logging method for logging data may be selected.
29 Citations
20 Claims
-
1. A method comprising:
-
receiving data and a specification of a default logging method from an application; collecting metadata, wherein the metadata describes the data; determining whether the collecting has collected more than a threshold amount of the metadata; if the determining is false, saving the data via the default logging method; and if the determining is true, selecting a selected logging method from among a plurality of logging methods based on the metadata, and saving the data via the selected logging method. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A signal-bearing medium encoded with instructions, wherein the instructions when executed comprise:
-
receiving data and a specification of a default logging method from an application; collecting metadata, wherein the metadata describes the data; determining whether the collecting has collected more than a threshold amount of the metadata; if the determining is false, saving the data via the default logging method; and if the determining is true, selecting a selected logging method from among a plurality of logging methods based on the metadata, and saving the data via the selected logging method, wherein the selecting further comprises selecting the selected logging method based on the metadata and a plurality of rules, wherein each of the plurality of rules identifies a field in the metadata, a field threshold, and a rule logging method. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. A method for configuring a computer, comprising:
-
configuring the computer to receive data and a specification of a default logging method from an application; configuring the computer to collect metadata, wherein the metadata describes the data; configuring the computer to determine whether the collecting has collected more than a threshold amount of the metadata; configuring the computer to, if the determining is false, save the data via the default logging method; configuring the computer to, if the determining is true, select a selected logging method from among a plurality of logging methods based on the metadata, and save the data via the selected logging method, wherein the selecting further comprises selecting the selected logging method based on the metadata and a plurality of rules, wherein each of the plurality of rules identifies a field in the metadata, a field threshold, and a rule logging method; and configuring the computer to merge a plurality of logs created by the plurality of the respective logging methods into a merged log, wherein the plurality of the logs have a plurality of respective formats. - View Dependent Claims (17, 18, 19, 20)
-
Specification