- adding base logging function for errors

Should be used when you have things like a query that is not getting the expected data.