Distributed plug-and-play logging services
First Claim
1. A method in a data processing system having a program, the method comprising the steps performed by the program of:
- reading a configuration file to determine a destination for sending logging information;
sending the logging information to the destination;
generating additional logging information;
determining whether the configuration file has been updated to indicate a new destination instead of the destination;
when the configuration file has not been updated to indicate the new destination, sending the additional logging information to the destination; and
when the configuration file has been updated to indicate the new destination, sending the additional logging information to the new destination.
2 Assignments
0 Petitions
Accused Products
Abstract
Methods, systems, and articles of manufacture consistent with the present invention log information by reading a configuration file to determine a destination for sending logging information. The logging information is sent to the destination. Additional logging information is generated. It is determined whether the configuration file has been updated to indicate a new destination instead of the destination. When the configuration file has not been updated to indicate the new destination, the additional logging information is sent to the destination. When the configuration file has been updated to indicate the new destination, the additional logging information is sent to the new destination.
-
Citations
27 Claims
-
1. A method in a data processing system having a program, the method comprising the steps performed by the program of:
-
reading a configuration file to determine a destination for sending logging information;
sending the logging information to the destination;
generating additional logging information;
determining whether the configuration file has been updated to indicate a new destination instead of the destination;
when the configuration file has not been updated to indicate the new destination, sending the additional logging information to the destination; and
when the configuration file has been updated to indicate the new destination, sending the additional logging information to the new destination. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A method in a data processing system having a program, the method comprising the steps performed by the program of:
-
obtaining a manager object for reading a logging method identifier from a configuration file, the logging method identifier identifying a first logging method for logging information to a destination selected from a group of destinations consisting of a local destination and a remote destination, the first logging method selected from a group of logging methods each associated with one of the group of destinations;
the manager object reading the configuration file to determine the first logging method identifier;
obtaining a log object including the first logging method responsive to the manager object determining the first logging method identifier;
the log object sending the logging information to the destination using the first logging method;
generating additional logging information;
determining whether the configuration file has been updated to indicate a second logging method identifier identifying a second logging method, the second logging method selected from the group of logging methods and being different from the first logging method;
when the configuration file has not been updated to indicate the second logging method identifier, the log object sending the additional logging information to the destination using the first logging method; and
when the configuration file has been updated to indicate the second logging method identifier, notifying the manager object that the configuration file has been updated;
the manager object reading the configuration file to determine the second logging method identifier;
the manager object notifying the log object to obtain the second logging method identifier from the manager object;
the log object obtaining the second logging method identifier from the manager object;
replacing the first logging method in the log object with the second logging method; and
the log object sending the additional logging information to a new destination associated with the second logging method using the second logging method.
-
-
13. A computer-readable medium containing instructions that cause a program in a data processing system to perform a method comprising the steps of:
-
reading a configuration file to determine a destination for sending logging information;
sending the logging information to the destination;
generating additional logging information;
determining whether the configuration file has been updated to indicate a new destination instead of the destination;
when the configuration file has not been updated to indicate the new destination, sending the additional logging information to the destination; and
when the configuration file has been updated to indicate the new destination, sending the additional logging information to the new destination. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23)
-
-
24. A computer-readable medium containing instructions that cause a program in a data processing system to perform a method comprising the steps of:
-
obtaining a manager object for reading a logging method identifier from a configuration file, the logging method identifier identifying a first logging method for logging information to a destination selected from a group of destinations consisting of a local destination and a remote destination, the first logging method selected from a group of logging methods each associated with one of the group of destinations;
the manager object reading the configuration file to determine the first logging method identifier;
obtaining a log object including the first logging method responsive to the manager object determining the first logging method identifier;
the log object sending the logging information to the destination using the first logging method;
generating additional logging information;
determining whether the configuration file has been updated to indicate a second logging method identifier identifying a second logging method, the second logging method selected from the group of logging methods and being different from the first logging method;
when the configuration file has not been updated to indicate the second logging method identifier, the log object sending the additional logging information to the destination using the first logging method; and
when the configuration file has been updated to indicate the second logging method identifier, notifying the manager object that the configuration file has been updated;
the manager object reading the configuration file to determine the second logging method identifier;
the manager object notifying the log object to obtain the second logging method identifier from the manager object;
the log object obtaining the second logging method identifier from the manager object;
replacing the first logging method in the log object with the second logging method; and
the log object sending the additional logging information to a new destination associated with the second logging method using the second logging method.
-
-
25. A data processing system comprising:
-
a secondary storage device having a configuration file;
a memory comprising a program that reads a configuration file to determine a destination for sending logging information, sends the logging information to the destination, generates additional logging information, determines whether the configuration file has been updated to indicate a new destination instead of the destination, sends the additional logging information to the destination when the configuration file has not been updated to indicate the new destination, and sends the additional logging information to the new destination when the configuration file has been updated to indicate the new destination; and
a processing unit that runs the program.
-
-
26. A data processing system comprising:
-
means for reading a configuration file to determine a destination for sending logging information;
means for sending the logging information to the destination;
means for generating additional logging information;
means for determining whether the configuration file has been updated to indicate a new destination instead of the destination;
means for sending the additional logging information to the destination when the configuration file has not been updated to indicate the new destination; and
means for sending the additional logging information to the new destination when the configuration file has been updated to indicate the new destination.
-
-
27. A computer-readable memory device encoded with a program having a data structure, the program run by a processor in a data processing system, the data structure comprising:
a method for logging information to a destination, wherein the program monitors a configuration file for changes to indicate that the program is to use a new method for logging the information to a new destination, such that when the configuration file changes, the program replaces the method with the new method for logging the information to the new destination.
Specification