Computer software framework and method for logging messages
First Claim
1. A message logging framework, comprising:
- a log object created by a destination log class extending a log base class and the log base class implementing a log interface, wherein the log base class comprises a method for formatting a message and the destination log class comprises a method to log the formatted message to a destination log, wherein the message logging framework provides from an application'"'"'s perspective a common interface to variety of destination logs distributed across a computing system thru the log object.
2 Assignments
0 Petitions
Accused Products
Abstract
The present invention discloses a message logging framework comprising a log object created by a destination log class extending a log base class and the log base class implementing a log interface. The log base class comprises a method for formatting a message and the destination log class comprises a method to log the formatted message to a destination log. In a preferred embodiment, the log base class further comprises a method for filtering the message by comparing a severity attribute of the message to a filter severity criterion. The present invention also discloses a message logging framework comprising a group log object created by a group log class extending a log collection class and implementing a log interface. The group log class comprises a method to log the message to a plurality of destination logs. The present invention further discloses a method for logging a message comprising forming a destination log object by a destination log class extending a log base class and the log base class implementing a log interface. A message is formatted, and the formatted message is logged to a destination log via the destination log object. In a preferred embodiment, the logging method further comprises filtering the message by comparing a severity attribute of the message to a filter severity criterion. The present invention also discloses a method for logging a message comprising forming a group log object by a group log class extending a log collection class and implementing a log interface. The message is logged to a plurality of destination logs via the group log object.
64 Citations
42 Claims
-
1. A message logging framework, comprising:
-
a log object created by a destination log class extending a log base class and the log base class implementing a log interface, wherein the log base class comprises a method for formatting a message and the destination log class comprises a method to log the formatted message to a destination log, wherein the message logging framework provides from an application'"'"'s perspective a common interface to variety of destination logs distributed across a computing system thru the log object. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
a method for filtering the message by comparing the severity attribute of the message to a filter severity criterion, wherein a message that conforms to the filter severity criterion becomes a filtered message and is not logged to the destination log and a message that does not conform to the filter severity criterion becomes an unfiltered message and is logged to the destination log.
-
-
5. The framework of claim 2 wherein the log base class further comprises:
a method for filtering the message by comparing the severity attribute of the message to a filter severity criterion, wherein a message that conforms to the filter severity criterion becomes a filtered message and is logged to the destination log and a message that does not conform to the filter severity criterion becomes an unfiltered message and is not logged to the destination log.
-
6. The framework of claim 1 wherein the destination log class further comprises at least one destination log.
-
7. The framework of claim 1 wherein the destination log class further comprises a plurality of destination logs.
-
8. The framework of claim 1 wherein the method for formatting the message further comprises calling a formatter object, the formatting object further comprising a method to format tho message.
-
9. The framework of claim 8 wherein the formatter object further comprises a plurality of formatter objects chained together, each formatter object comprising a method to format the message.
-
10. The framework of claim 1 wherein the method for formatting the message includes inserting a time stamp.
-
11. The framework of claim 1 wherein the method for formatting the message includes inserting a severity description.
-
12. A message logging framework providing from an application'"'"'s perspective a common interface to a variety of destination logs distributed across a computing system, comprising:
-
a group log object created by a group log class extending a log collection class and implementing a log interface, wherein the group log class comprises a method to log a message to a plurality of destination logs, thereby allowing the application to make a single logging call to the variety of destination logs thru the group log object. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21)
a method for filtering the message by comparing the severity attribute of the message to a filter severity criterion, wherein a message that conforms to the filter severity criterion becomes a filtered message and is not logged to the destination log and a message that does not conform to the filter severity criterion becomes an unfiltered message and is logged to the destination log.
-
-
17. The framework of claim 14 wherein the log base class further comprises:
a method for filtering the message by comparing the severity attribute of the message to a filter severity criterion, wherein a message that conforms to the filter severity criterion becomes a filtered message and is logged to the destination log and a message that does not conform to the filter severity criterion becomes an unfiltered message and is not logged to the destination log.
-
18. The framework of claim 13 wherein the method for formatting the message further comprising calling a formatter object, the formatter object further comprising a method to format the message.
-
19. The framework of claim 18 wherein the formatter object further comprises a plurality of formatter objects chained together, each formatter object comprising a method to format the message.
-
20. The framework of claim 13 wherein the method for formatting the message includes inserting a time stamp.
-
21. The framework of claim 13 wherein the method for formatting the message includes inserting a severity description.
-
22. A method for logging a message provided by a message logging framework, comprising:
-
forming a destination log object by a destination log class extending a log base class and the log base class implementing a log interface;
formatting the message; and
logging the formatted message to a destination log via the destination log object, wherein the method provides from an application'"'"'s perspective a common interface to a variety of destination logs distributed across a computing system thru the destination log object. - View Dependent Claims (23, 24, 25, 26, 27, 28, 29, 30, 31, 32)
filtering the message by comparing the severity attribute of the message to a filter severity criterion, wherein a message that conforms to the filter severity criterion becomes a filtered message and is not logged to the destination log and a message that does not conform to the filter severity criterion becomes an unfiltered message and is logged to the destination log.
-
-
26. The method of claim 23 further comprising:
filtering the message by comparing the severity attribute of the message to a filter severity criterion, wherein a message that conforms to the filter severity criterion becomes a filtered message and is logged to the destination log and a message that does not conform to the filter severity criterion becomes an unfiltered message and is not logged to the destination log.
-
27. The method of claim 22 wherein the destination log class further comprises at least one destination log.
-
28. The method of claim 22 wherein the destination log class further comprises a plurality of destination logs.
-
29. The method of claim 22 wherein the step of formatting the message further comprises calling a formatter object, the formatter object further comprising a method to format the message.
-
30. The method of claim 29 wherein the formatter object further comprises a plurality of formatter objects chained together, each formatter object comprising a method to format the message.
-
31. The method of claim 22 wherein the step of formatting the message comprises inserting a time stamp.
-
32. The method of claim 22 wherein the step of formatting the message comprises inserting a severity description.
-
33. A method for logging a message by providing from an application'"'"'s perspective a common interface to a variety of destination logs distributed across a computing system, comprising:
-
forming a group log object by a group log class extending a log collection class and implementing a log interface; and
logging the message to plurality of destination logs via the group log object, thereby allowing the application to make a single logging call to the variety of destination logs to log a message. - View Dependent Claims (34, 35, 36, 37, 38, 39, 40, 41, 42)
forming a destination log object by a destination log class extending a log base class and the log base class implementing a log interface, formatting the message; and
logging the formatted message to the destination log via the destination log object.
-
-
35. The method of claim 34 wherein the step of formatting the message comprises inserting a time stamp.
-
36. The method of claim 34 wherein the step of formatting the message comprises inserting a severity description.
-
37. The method of claim 34 wherein the message comprises a text string, a severity attribute, and an options attribute.
-
38. The framework of claim 37 wherein the step of formatting the message includes inserting a severity description into the message text string, the severity description corresponding to the information contained in the message severity attribute.
-
39. The method of claim 37 further comprising:
filtering the message by comparing the severity attribute of the message to u filter severity criterion, wherein a message that conforms to the filter severity criterion becomes a filtered message and is not logged to the destination log and a message that does not conform to the filter severity criterion becomes an unfiltered message and is logged to the destination log.
-
40. The method of claim 37 further comprising:
filtering the message by comparing the severity attribute of the message to a filter severity criterion, wherein a message that conforms to the filter severity criterion becomes a filtered message and is logged to the destination log and a message that does not conform to the filter severity criterion becomes an unfiltered message and is not logged to the destination log.
-
41. The method of claim 34 wherein the step of formatting the message further comprises calling a formatter object, the formatter object further comprising a method to format the message.
-
42. The method of claim 41 wherein the formatter object further comprises a plurality of formatter objects chained together, each formatter object comprising a method to format the message.
Specification