Unable to read Safari Console Logs after upgrading the hybrid app from UIWebView to WKWebview

Hi Everyone,

I’m unable to read Safari Console Logs after upgrading the hybrid app from UIWebView to WKWebview.

Appium - 1.17.1
IPAD - 13.3

The following code return null
LogEntries entry1 = driver.manage().logs().get(“safariConsole”);

List s = entry1.getAll();

System.out .println(s.size());

Need some suggestions