logging smarts