Added Support for Aysnchronous Logging and Retry upto 5 times