摘要 |
A method, system, and computer program product for logging events in a data processing system is provided. In one embodiment, responsive to a determination that a situation exists preventing a primary logger from executing a logging task, a swappable adaptive logger is created, which in turn is pointed to a boot logger created by a swappable adaptive log engine. Event information is then logged to the boot logger. For example, the boot logger may write event information to memory or to a file if the logging database is unavailable. When the primary logger becomes configured and functional, the swappable adaptive logger swaps the boot logger for the primary logger and begins writing event information to the primary logger.
|