Refactored context logger watchdog aspect.