Added LogLifecycle. Logs during each lifecycle callback.