Can I log browser console errors?

@kazurayam I just tried to do this

driver.get(SuiteVars.WebTabUrl()) ---- > I am opening the application which is deployed on web

WebUI.delay(15)

WebDriver driver = DriverFactory.getWebDriver()

LogEntries logs = driver.manage().logs().get(“browser”)

for (LogEntry entry: logs){

println(entry.getMessage())

}