Distributed plug-and-play logging services
First Claim
Patent Images
1. A method, comprising:
- in a data processing system having a processor and a memory, the memory storing a program, the processor executing the program to perform the steps of;
reading a configuration file to determine a first destination for sending logging information;
sending the logging information to the first destination;
generating additional logging information;
determining whether the configuration file has been updated to indicate a new destination instead of the first destination;
obtaining a log object for sending the log information to the first destination;
obtaining a manager object for reading the configuration file;
when the configuration file has not been updated to indicate the new destination,sending the additional logging information to the first destination;
when the configuration file has been updated to indicate the new destination,prior to sending the additional logging information to the new destination,notifying the manager object that the configuration file has been updated;
the manager object reading the configuration file to determine the new destination for sending the logging information;
notifying the log object to obtain an identity of the new destination from the manager object;
obtaining at the log object the identity of the new destination from the manager object; and
the log object replacing its current logging implementation wrapper that corresponds to the first destination with a new logging implementation wrapper that corresponds to the new destination; and
sending the additional logging information to the new destination,wherein determining whether the configuration file has been updated includes a watchdog timer repeatedly monitoring the configuration file, at a predetermined time interval, to check a date and time of the configuration file and to determine whether the configuration file has changed for an update of the configuration file at a predetermined time interval.
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.
14 Citations
14 Claims
-
1. A method, comprising:
-
in a data processing system having a processor and a memory, the memory storing a program, the processor executing the program to perform the steps of; reading a configuration file to determine a first destination for sending logging information; sending the logging information to the first destination; generating additional logging information; determining whether the configuration file has been updated to indicate a new destination instead of the first destination; obtaining a log object for sending the log information to the first destination; obtaining a manager object for reading the configuration file; when the configuration file has not been updated to indicate the new destination, sending the additional logging information to the first destination; when the configuration file has been updated to indicate the new destination, prior to sending the additional logging information to the new destination, notifying the manager object that the configuration file has been updated; the manager object reading the configuration file to determine the new destination for sending the logging information; notifying the log object to obtain an identity of the new destination from the manager object; obtaining at the log object the identity of the new destination from the manager object; and the log object replacing its current logging implementation wrapper that corresponds to the first destination with a new logging implementation wrapper that corresponds to the new destination; and sending the additional logging information to the new destination, wherein determining whether the configuration file has been updated includes a watchdog timer repeatedly monitoring the configuration file, at a predetermined time interval, to check a date and time of the configuration file and to determine whether the configuration file has changed for an update of the configuration file at a predetermined time interval. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. 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 first destination for sending logging information; sending the logging information to the first destination; generating additional logging information; determining whether the configuration file has been updated to indicate a new destination instead of the first destination; obtaining a log object for sending the log information to the first destination; obtaining a manager object for reading the configuration file; when the configuration file has not been updated to indicate the new destination, sending the additional logging information to the first destination; when the configuration file has been updated to indicate the new destination, prior to sending the additional logging information to the new destination, notifying the manager object that the configuration file has been updated; the manager object reading the configuration file to determine the new destination for sending the logging information; notifying the log object to obtain an identity of the new destination from the manager object; obtaining at the log object the identity of the new destination from the manager object; and the log object replacing its current logging implementation wrapper that corresponds to the first destination with a new logging implementation wrapper that corresponds to the new destination; and sending the additional logging information to the new destination, wherein determining whether the configuration file has been updated includes a watchdog timer repeatedly monitoring the configuration file, at a predetermined time interval, to check the date and time of the configuration file and to determine whether the configuration file has changed. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. 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 selected destination, the selected destination being 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 selected 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 selected destination using the first logging method; and when the configuration file has been updated to indicate the second logging method identifier, prior to sending the additional logging information, 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; the log object sending the additional logging information to a new destination associated with the second logging method using the second logging method; and the log object replacing its current logging implementation wrapper that corresponds to the selected destination with a new logging implementation wrapper that corresponds to the new destination, wherein determining whether the configuration file has been updated includes a watchdog timer repeatedly monitoring the configuration file, at a predetermined time interval, to check the date and time of the configuration file and to determine whether the configuration file has changed.
-
-
14. A data processing system comprising:
-
a secondary storage device having a configuration file; a memory comprising a program that, when executed by a processing unit, causes the processing unit to read a configuration file to determine a first destination for sending logging information, send the logging information to the first destination, generate additional logging information, determine whether the configuration file has been updated to indicate a new destination instead of the first destination, send the additional logging information to the first destination when the configuration file has not been updated to indicate the new destination, send the additional logging information to the new destination when the configuration file has been updated to indicate the new destination, obtain a log object for sending the log information to the destination, obtain a manager object for reading the configuration file, and when the configuration file has been updated to indicate the new destination, prior to sending the additional logging information; notify the manager object that the configuration file has been updated, cause the manager object to read the configuration file to determine the new destination for sending the logging information, notify the log object to obtain an identity of the new destination from the manager object, obtain at the log object the identity of the new destination from the manager object; and cause the log object to replace its current logging implementation wrapper that corresponds to the first destination with a new logging implementation wrapper that corresponds to the new destination, wherein the determination of whether the configuration file has been updated includes a watchdog timer repeatedly monitoring the configuration file, at a predetermined time interval, to check the date and time of the configuration file and to determine whether the configuration file has changed; and the processing unit that runs the program.
-
Specification