Sharepoint - Is there any way to check does list exists without try catch?
SPWeb.Lists.TryGetList is probably what you're looking for.
So in your example:
logList = site.RootWeb.Lists.TryGetList("Log Records");
SPWeb.Lists.TryGetList is probably what you're looking for.
So in your example:
logList = site.RootWeb.Lists.TryGetList("Log Records");