摘要 |
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.
|