Adding Logging in lon fuctinality